AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DataSubscriptionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-analytics/PartnerCentralAnalytics_EXPORTS.h>
10#include <aws/partnercentral-analytics/model/DeliveryState.h>
11#include <aws/partnercentral-analytics/model/InitialDeliveryProgress.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralAnalytics {
23namespace Model {
24
31 public:
32 AWS_PARTNERCENTRALANALYTICS_API DataSubscriptionSummary() = default;
33 AWS_PARTNERCENTRALANALYTICS_API DataSubscriptionSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALANALYTICS_API DataSubscriptionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetDataSubscriptionIdentifier() const { return m_dataSubscriptionIdentifier; }
40 inline bool DataSubscriptionIdentifierHasBeenSet() const { return m_dataSubscriptionIdentifierHasBeenSet; }
41 template <typename DataSubscriptionIdentifierT = Aws::String>
42 void SetDataSubscriptionIdentifier(DataSubscriptionIdentifierT&& value) {
43 m_dataSubscriptionIdentifierHasBeenSet = true;
44 m_dataSubscriptionIdentifier = std::forward<DataSubscriptionIdentifierT>(value);
45 }
46 template <typename DataSubscriptionIdentifierT = Aws::String>
47 DataSubscriptionSummary& WithDataSubscriptionIdentifier(DataSubscriptionIdentifierT&& value) {
48 SetDataSubscriptionIdentifier(std::forward<DataSubscriptionIdentifierT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
56 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
57 template <typename DatasetNameT = Aws::String>
58 void SetDatasetName(DatasetNameT&& value) {
59 m_datasetNameHasBeenSet = true;
60 m_datasetName = std::forward<DatasetNameT>(value);
61 }
62 template <typename DatasetNameT = Aws::String>
64 SetDatasetName(std::forward<DatasetNameT>(value));
65 return *this;
66 }
68
70
75 inline DeliveryState GetDeliveryState() const { return m_deliveryState; }
76 inline bool DeliveryStateHasBeenSet() const { return m_deliveryStateHasBeenSet; }
77 inline void SetDeliveryState(DeliveryState value) {
78 m_deliveryStateHasBeenSet = true;
79 m_deliveryState = value;
80 }
82 SetDeliveryState(value);
83 return *this;
84 }
86
88
93 inline const Aws::Utils::DateTime& GetDeliveredThrough() const { return m_deliveredThrough; }
94 inline bool DeliveredThroughHasBeenSet() const { return m_deliveredThroughHasBeenSet; }
95 template <typename DeliveredThroughT = Aws::Utils::DateTime>
96 void SetDeliveredThrough(DeliveredThroughT&& value) {
97 m_deliveredThroughHasBeenSet = true;
98 m_deliveredThrough = std::forward<DeliveredThroughT>(value);
99 }
100 template <typename DeliveredThroughT = Aws::Utils::DateTime>
101 DataSubscriptionSummary& WithDeliveredThrough(DeliveredThroughT&& value) {
102 SetDeliveredThrough(std::forward<DeliveredThroughT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Utils::DateTime& GetLastDeliveryTime() const { return m_lastDeliveryTime; }
113 inline bool LastDeliveryTimeHasBeenSet() const { return m_lastDeliveryTimeHasBeenSet; }
114 template <typename LastDeliveryTimeT = Aws::Utils::DateTime>
115 void SetLastDeliveryTime(LastDeliveryTimeT&& value) {
116 m_lastDeliveryTimeHasBeenSet = true;
117 m_lastDeliveryTime = std::forward<LastDeliveryTimeT>(value);
118 }
119 template <typename LastDeliveryTimeT = Aws::Utils::DateTime>
120 DataSubscriptionSummary& WithLastDeliveryTime(LastDeliveryTimeT&& value) {
121 SetLastDeliveryTime(std::forward<LastDeliveryTimeT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::String& GetDeliveryStateMessage() const { return m_deliveryStateMessage; }
133 inline bool DeliveryStateMessageHasBeenSet() const { return m_deliveryStateMessageHasBeenSet; }
134 template <typename DeliveryStateMessageT = Aws::String>
135 void SetDeliveryStateMessage(DeliveryStateMessageT&& value) {
136 m_deliveryStateMessageHasBeenSet = true;
137 m_deliveryStateMessage = std::forward<DeliveryStateMessageT>(value);
138 }
139 template <typename DeliveryStateMessageT = Aws::String>
140 DataSubscriptionSummary& WithDeliveryStateMessage(DeliveryStateMessageT&& value) {
141 SetDeliveryStateMessage(std::forward<DeliveryStateMessageT>(value));
142 return *this;
143 }
145
147
151 inline const InitialDeliveryProgress& GetInitialDeliveryProgress() const { return m_initialDeliveryProgress; }
152 inline bool InitialDeliveryProgressHasBeenSet() const { return m_initialDeliveryProgressHasBeenSet; }
153 template <typename InitialDeliveryProgressT = InitialDeliveryProgress>
154 void SetInitialDeliveryProgress(InitialDeliveryProgressT&& value) {
155 m_initialDeliveryProgressHasBeenSet = true;
156 m_initialDeliveryProgress = std::forward<InitialDeliveryProgressT>(value);
157 }
158 template <typename InitialDeliveryProgressT = InitialDeliveryProgress>
159 DataSubscriptionSummary& WithInitialDeliveryProgress(InitialDeliveryProgressT&& value) {
160 SetInitialDeliveryProgress(std::forward<InitialDeliveryProgressT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_dataSubscriptionIdentifier;
166
167 Aws::String m_datasetName;
168
169 DeliveryState m_deliveryState{DeliveryState::NOT_SET};
170
171 Aws::Utils::DateTime m_deliveredThrough{};
172
173 Aws::Utils::DateTime m_lastDeliveryTime{};
174
175 Aws::String m_deliveryStateMessage;
176
177 InitialDeliveryProgress m_initialDeliveryProgress;
178 bool m_dataSubscriptionIdentifierHasBeenSet = false;
179 bool m_datasetNameHasBeenSet = false;
180 bool m_deliveryStateHasBeenSet = false;
181 bool m_deliveredThroughHasBeenSet = false;
182 bool m_lastDeliveryTimeHasBeenSet = false;
183 bool m_deliveryStateMessageHasBeenSet = false;
184 bool m_initialDeliveryProgressHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace PartnerCentralAnalytics
189} // namespace Aws
DataSubscriptionSummary & WithLastDeliveryTime(LastDeliveryTimeT &&value)
DataSubscriptionSummary & WithDatasetName(DatasetNameT &&value)
void SetDataSubscriptionIdentifier(DataSubscriptionIdentifierT &&value)
DataSubscriptionSummary & WithDeliveredThrough(DeliveredThroughT &&value)
AWS_PARTNERCENTRALANALYTICS_API DataSubscriptionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALANALYTICS_API DataSubscriptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSubscriptionSummary & WithDataSubscriptionIdentifier(DataSubscriptionIdentifierT &&value)
AWS_PARTNERCENTRALANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
DataSubscriptionSummary & WithDeliveryState(DeliveryState value)
AWS_PARTNERCENTRALANALYTICS_API DataSubscriptionSummary()=default
DataSubscriptionSummary & WithInitialDeliveryProgress(InitialDeliveryProgressT &&value)
DataSubscriptionSummary & WithDeliveryStateMessage(DeliveryStateMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue