AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
ReplicaDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/GlobalTableSettingsReplicationMode.h>
12#include <aws/dynamodb/model/OnDemandThroughputOverride.h>
13#include <aws/dynamodb/model/ProvisionedThroughputOverride.h>
14#include <aws/dynamodb/model/ReplicaGlobalSecondaryIndexDescription.h>
15#include <aws/dynamodb/model/ReplicaStatus.h>
16#include <aws/dynamodb/model/TableClassSummary.h>
17#include <aws/dynamodb/model/TableWarmThroughputDescription.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace DynamoDB {
29namespace Model {
30
37 public:
38 AWS_DYNAMODB_API ReplicaDescription() = default;
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetRegionName() const { return m_regionName; }
48 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
49 template <typename RegionNameT = Aws::String>
50 void SetRegionName(RegionNameT&& value) {
51 m_regionNameHasBeenSet = true;
52 m_regionName = std::forward<RegionNameT>(value);
53 }
54 template <typename RegionNameT = Aws::String>
55 ReplicaDescription& WithRegionName(RegionNameT&& value) {
56 SetRegionName(std::forward<RegionNameT>(value));
57 return *this;
58 }
60
62
78 inline ReplicaStatus GetReplicaStatus() const { return m_replicaStatus; }
79 inline bool ReplicaStatusHasBeenSet() const { return m_replicaStatusHasBeenSet; }
80 inline void SetReplicaStatus(ReplicaStatus value) {
81 m_replicaStatusHasBeenSet = true;
82 m_replicaStatus = value;
83 }
85 SetReplicaStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetReplicaArn() const { return m_replicaArn; }
95 inline bool ReplicaArnHasBeenSet() const { return m_replicaArnHasBeenSet; }
96 template <typename ReplicaArnT = Aws::String>
97 void SetReplicaArn(ReplicaArnT&& value) {
98 m_replicaArnHasBeenSet = true;
99 m_replicaArn = std::forward<ReplicaArnT>(value);
100 }
101 template <typename ReplicaArnT = Aws::String>
102 ReplicaDescription& WithReplicaArn(ReplicaArnT&& value) {
103 SetReplicaArn(std::forward<ReplicaArnT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetReplicaStatusDescription() const { return m_replicaStatusDescription; }
113 inline bool ReplicaStatusDescriptionHasBeenSet() const { return m_replicaStatusDescriptionHasBeenSet; }
114 template <typename ReplicaStatusDescriptionT = Aws::String>
115 void SetReplicaStatusDescription(ReplicaStatusDescriptionT&& value) {
116 m_replicaStatusDescriptionHasBeenSet = true;
117 m_replicaStatusDescription = std::forward<ReplicaStatusDescriptionT>(value);
118 }
119 template <typename ReplicaStatusDescriptionT = Aws::String>
120 ReplicaDescription& WithReplicaStatusDescription(ReplicaStatusDescriptionT&& value) {
121 SetReplicaStatusDescription(std::forward<ReplicaStatusDescriptionT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetReplicaStatusPercentProgress() const { return m_replicaStatusPercentProgress; }
132 inline bool ReplicaStatusPercentProgressHasBeenSet() const { return m_replicaStatusPercentProgressHasBeenSet; }
133 template <typename ReplicaStatusPercentProgressT = Aws::String>
134 void SetReplicaStatusPercentProgress(ReplicaStatusPercentProgressT&& value) {
135 m_replicaStatusPercentProgressHasBeenSet = true;
136 m_replicaStatusPercentProgress = std::forward<ReplicaStatusPercentProgressT>(value);
137 }
138 template <typename ReplicaStatusPercentProgressT = Aws::String>
139 ReplicaDescription& WithReplicaStatusPercentProgress(ReplicaStatusPercentProgressT&& value) {
140 SetReplicaStatusPercentProgress(std::forward<ReplicaStatusPercentProgressT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetKMSMasterKeyId() const { return m_kMSMasterKeyId; }
150 inline bool KMSMasterKeyIdHasBeenSet() const { return m_kMSMasterKeyIdHasBeenSet; }
151 template <typename KMSMasterKeyIdT = Aws::String>
152 void SetKMSMasterKeyId(KMSMasterKeyIdT&& value) {
153 m_kMSMasterKeyIdHasBeenSet = true;
154 m_kMSMasterKeyId = std::forward<KMSMasterKeyIdT>(value);
155 }
156 template <typename KMSMasterKeyIdT = Aws::String>
157 ReplicaDescription& WithKMSMasterKeyId(KMSMasterKeyIdT&& value) {
158 SetKMSMasterKeyId(std::forward<KMSMasterKeyIdT>(value));
159 return *this;
160 }
162
164
168 inline const ProvisionedThroughputOverride& GetProvisionedThroughputOverride() const { return m_provisionedThroughputOverride; }
169 inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; }
170 template <typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
171 void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) {
172 m_provisionedThroughputOverrideHasBeenSet = true;
173 m_provisionedThroughputOverride = std::forward<ProvisionedThroughputOverrideT>(value);
174 }
175 template <typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
176 ReplicaDescription& WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) {
177 SetProvisionedThroughputOverride(std::forward<ProvisionedThroughputOverrideT>(value));
178 return *this;
179 }
181
183
187 inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const { return m_onDemandThroughputOverride; }
188 inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; }
189 template <typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
190 void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) {
191 m_onDemandThroughputOverrideHasBeenSet = true;
192 m_onDemandThroughputOverride = std::forward<OnDemandThroughputOverrideT>(value);
193 }
194 template <typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
195 ReplicaDescription& WithOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) {
196 SetOnDemandThroughputOverride(std::forward<OnDemandThroughputOverrideT>(value));
197 return *this;
198 }
200
202
205 inline const TableWarmThroughputDescription& GetWarmThroughput() const { return m_warmThroughput; }
206 inline bool WarmThroughputHasBeenSet() const { return m_warmThroughputHasBeenSet; }
207 template <typename WarmThroughputT = TableWarmThroughputDescription>
208 void SetWarmThroughput(WarmThroughputT&& value) {
209 m_warmThroughputHasBeenSet = true;
210 m_warmThroughput = std::forward<WarmThroughputT>(value);
211 }
212 template <typename WarmThroughputT = TableWarmThroughputDescription>
213 ReplicaDescription& WithWarmThroughput(WarmThroughputT&& value) {
214 SetWarmThroughput(std::forward<WarmThroughputT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<ReplicaGlobalSecondaryIndexDescription>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
224 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
225 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexDescription>>
226 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
227 m_globalSecondaryIndexesHasBeenSet = true;
228 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
229 }
230 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexDescription>>
231 ReplicaDescription& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
232 SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value));
233 return *this;
234 }
235 template <typename GlobalSecondaryIndexesT = ReplicaGlobalSecondaryIndexDescription>
236 ReplicaDescription& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
237 m_globalSecondaryIndexesHasBeenSet = true;
238 m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value));
239 return *this;
240 }
242
244
249 inline const Aws::Utils::DateTime& GetReplicaInaccessibleDateTime() const { return m_replicaInaccessibleDateTime; }
250 inline bool ReplicaInaccessibleDateTimeHasBeenSet() const { return m_replicaInaccessibleDateTimeHasBeenSet; }
251 template <typename ReplicaInaccessibleDateTimeT = Aws::Utils::DateTime>
252 void SetReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT&& value) {
253 m_replicaInaccessibleDateTimeHasBeenSet = true;
254 m_replicaInaccessibleDateTime = std::forward<ReplicaInaccessibleDateTimeT>(value);
255 }
256 template <typename ReplicaInaccessibleDateTimeT = Aws::Utils::DateTime>
257 ReplicaDescription& WithReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT&& value) {
258 SetReplicaInaccessibleDateTime(std::forward<ReplicaInaccessibleDateTimeT>(value));
259 return *this;
260 }
262
264
265 inline const TableClassSummary& GetReplicaTableClassSummary() const { return m_replicaTableClassSummary; }
266 inline bool ReplicaTableClassSummaryHasBeenSet() const { return m_replicaTableClassSummaryHasBeenSet; }
267 template <typename ReplicaTableClassSummaryT = TableClassSummary>
268 void SetReplicaTableClassSummary(ReplicaTableClassSummaryT&& value) {
269 m_replicaTableClassSummaryHasBeenSet = true;
270 m_replicaTableClassSummary = std::forward<ReplicaTableClassSummaryT>(value);
271 }
272 template <typename ReplicaTableClassSummaryT = TableClassSummary>
273 ReplicaDescription& WithReplicaTableClassSummary(ReplicaTableClassSummaryT&& value) {
274 SetReplicaTableClassSummary(std::forward<ReplicaTableClassSummaryT>(value));
275 return *this;
276 }
278
280
290 inline GlobalTableSettingsReplicationMode GetGlobalTableSettingsReplicationMode() const { return m_globalTableSettingsReplicationMode; }
291 inline bool GlobalTableSettingsReplicationModeHasBeenSet() const { return m_globalTableSettingsReplicationModeHasBeenSet; }
293 m_globalTableSettingsReplicationModeHasBeenSet = true;
294 m_globalTableSettingsReplicationMode = value;
295 }
298 return *this;
299 }
301 private:
302 Aws::String m_regionName;
303
304 ReplicaStatus m_replicaStatus{ReplicaStatus::NOT_SET};
305
306 Aws::String m_replicaArn;
307
308 Aws::String m_replicaStatusDescription;
309
310 Aws::String m_replicaStatusPercentProgress;
311
312 Aws::String m_kMSMasterKeyId;
313
314 ProvisionedThroughputOverride m_provisionedThroughputOverride;
315
316 OnDemandThroughputOverride m_onDemandThroughputOverride;
317
318 TableWarmThroughputDescription m_warmThroughput;
319
321
322 Aws::Utils::DateTime m_replicaInaccessibleDateTime{};
323
324 TableClassSummary m_replicaTableClassSummary;
325
327 bool m_regionNameHasBeenSet = false;
328 bool m_replicaStatusHasBeenSet = false;
329 bool m_replicaArnHasBeenSet = false;
330 bool m_replicaStatusDescriptionHasBeenSet = false;
331 bool m_replicaStatusPercentProgressHasBeenSet = false;
332 bool m_kMSMasterKeyIdHasBeenSet = false;
333 bool m_provisionedThroughputOverrideHasBeenSet = false;
334 bool m_onDemandThroughputOverrideHasBeenSet = false;
335 bool m_warmThroughputHasBeenSet = false;
336 bool m_globalSecondaryIndexesHasBeenSet = false;
337 bool m_replicaInaccessibleDateTimeHasBeenSet = false;
338 bool m_replicaTableClassSummaryHasBeenSet = false;
339 bool m_globalTableSettingsReplicationModeHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace DynamoDB
344} // namespace Aws
const Aws::Vector< ReplicaGlobalSecondaryIndexDescription > & GetGlobalSecondaryIndexes() const
void SetKMSMasterKeyId(KMSMasterKeyIdT &&value)
ReplicaDescription & WithOnDemandThroughputOverride(OnDemandThroughputOverrideT &&value)
void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT &&value)
ReplicaDescription & WithWarmThroughput(WarmThroughputT &&value)
void SetReplicaStatusPercentProgress(ReplicaStatusPercentProgressT &&value)
const TableClassSummary & GetReplicaTableClassSummary() const
ReplicaDescription & WithReplicaArn(ReplicaArnT &&value)
const TableWarmThroughputDescription & GetWarmThroughput() const
void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT &&value)
void SetReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT &&value)
const Aws::String & GetReplicaStatusPercentProgress() const
ReplicaDescription & WithReplicaTableClassSummary(ReplicaTableClassSummaryT &&value)
void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
const Aws::String & GetKMSMasterKeyId() const
ReplicaDescription & WithReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT &&value)
ReplicaDescription & AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
const OnDemandThroughputOverride & GetOnDemandThroughputOverride() const
const Aws::String & GetRegionName() const
GlobalTableSettingsReplicationMode GetGlobalTableSettingsReplicationMode() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API ReplicaDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicaDescription & WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT &&value)
const Aws::Utils::DateTime & GetReplicaInaccessibleDateTime() const
ReplicaDescription & WithRegionName(RegionNameT &&value)
AWS_DYNAMODB_API ReplicaDescription(Aws::Utils::Json::JsonView jsonValue)
void SetWarmThroughput(WarmThroughputT &&value)
void SetReplicaStatusDescription(ReplicaStatusDescriptionT &&value)
void SetReplicaTableClassSummary(ReplicaTableClassSummaryT &&value)
ReplicaDescription & WithReplicaStatusDescription(ReplicaStatusDescriptionT &&value)
const Aws::String & GetReplicaStatusDescription() const
ReplicaDescription & WithReplicaStatus(ReplicaStatus value)
ReplicaDescription & WithReplicaStatusPercentProgress(ReplicaStatusPercentProgressT &&value)
const Aws::String & GetReplicaArn() const
ReplicaDescription & WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT &&value)
void SetGlobalTableSettingsReplicationMode(GlobalTableSettingsReplicationMode value)
const ProvisionedThroughputOverride & GetProvisionedThroughputOverride() const
ReplicaDescription & WithKMSMasterKeyId(KMSMasterKeyIdT &&value)
ReplicaDescription & WithGlobalTableSettingsReplicationMode(GlobalTableSettingsReplicationMode value)
AWS_DYNAMODB_API ReplicaDescription()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue