AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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& GetReplicaStatusDescription() const { return m_replicaStatusDescription; }
95 inline bool ReplicaStatusDescriptionHasBeenSet() const { return m_replicaStatusDescriptionHasBeenSet; }
96 template <typename ReplicaStatusDescriptionT = Aws::String>
97 void SetReplicaStatusDescription(ReplicaStatusDescriptionT&& value) {
98 m_replicaStatusDescriptionHasBeenSet = true;
99 m_replicaStatusDescription = std::forward<ReplicaStatusDescriptionT>(value);
100 }
101 template <typename ReplicaStatusDescriptionT = Aws::String>
102 ReplicaDescription& WithReplicaStatusDescription(ReplicaStatusDescriptionT&& value) {
103 SetReplicaStatusDescription(std::forward<ReplicaStatusDescriptionT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetReplicaStatusPercentProgress() const { return m_replicaStatusPercentProgress; }
114 inline bool ReplicaStatusPercentProgressHasBeenSet() const { return m_replicaStatusPercentProgressHasBeenSet; }
115 template <typename ReplicaStatusPercentProgressT = Aws::String>
116 void SetReplicaStatusPercentProgress(ReplicaStatusPercentProgressT&& value) {
117 m_replicaStatusPercentProgressHasBeenSet = true;
118 m_replicaStatusPercentProgress = std::forward<ReplicaStatusPercentProgressT>(value);
119 }
120 template <typename ReplicaStatusPercentProgressT = Aws::String>
121 ReplicaDescription& WithReplicaStatusPercentProgress(ReplicaStatusPercentProgressT&& value) {
122 SetReplicaStatusPercentProgress(std::forward<ReplicaStatusPercentProgressT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetKMSMasterKeyId() const { return m_kMSMasterKeyId; }
132 inline bool KMSMasterKeyIdHasBeenSet() const { return m_kMSMasterKeyIdHasBeenSet; }
133 template <typename KMSMasterKeyIdT = Aws::String>
134 void SetKMSMasterKeyId(KMSMasterKeyIdT&& value) {
135 m_kMSMasterKeyIdHasBeenSet = true;
136 m_kMSMasterKeyId = std::forward<KMSMasterKeyIdT>(value);
137 }
138 template <typename KMSMasterKeyIdT = Aws::String>
139 ReplicaDescription& WithKMSMasterKeyId(KMSMasterKeyIdT&& value) {
140 SetKMSMasterKeyId(std::forward<KMSMasterKeyIdT>(value));
141 return *this;
142 }
144
146
150 inline const ProvisionedThroughputOverride& GetProvisionedThroughputOverride() const { return m_provisionedThroughputOverride; }
151 inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; }
152 template <typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
153 void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) {
154 m_provisionedThroughputOverrideHasBeenSet = true;
155 m_provisionedThroughputOverride = std::forward<ProvisionedThroughputOverrideT>(value);
156 }
157 template <typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
158 ReplicaDescription& WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) {
159 SetProvisionedThroughputOverride(std::forward<ProvisionedThroughputOverrideT>(value));
160 return *this;
161 }
163
165
169 inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const { return m_onDemandThroughputOverride; }
170 inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; }
171 template <typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
172 void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) {
173 m_onDemandThroughputOverrideHasBeenSet = true;
174 m_onDemandThroughputOverride = std::forward<OnDemandThroughputOverrideT>(value);
175 }
176 template <typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
177 ReplicaDescription& WithOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) {
178 SetOnDemandThroughputOverride(std::forward<OnDemandThroughputOverrideT>(value));
179 return *this;
180 }
182
184
187 inline const TableWarmThroughputDescription& GetWarmThroughput() const { return m_warmThroughput; }
188 inline bool WarmThroughputHasBeenSet() const { return m_warmThroughputHasBeenSet; }
189 template <typename WarmThroughputT = TableWarmThroughputDescription>
190 void SetWarmThroughput(WarmThroughputT&& value) {
191 m_warmThroughputHasBeenSet = true;
192 m_warmThroughput = std::forward<WarmThroughputT>(value);
193 }
194 template <typename WarmThroughputT = TableWarmThroughputDescription>
195 ReplicaDescription& WithWarmThroughput(WarmThroughputT&& value) {
196 SetWarmThroughput(std::forward<WarmThroughputT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Vector<ReplicaGlobalSecondaryIndexDescription>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
206 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
207 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexDescription>>
208 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
209 m_globalSecondaryIndexesHasBeenSet = true;
210 m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value);
211 }
212 template <typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexDescription>>
213 ReplicaDescription& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
214 SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value));
215 return *this;
216 }
217 template <typename GlobalSecondaryIndexesT = ReplicaGlobalSecondaryIndexDescription>
218 ReplicaDescription& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) {
219 m_globalSecondaryIndexesHasBeenSet = true;
220 m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value));
221 return *this;
222 }
224
226
231 inline const Aws::Utils::DateTime& GetReplicaInaccessibleDateTime() const { return m_replicaInaccessibleDateTime; }
232 inline bool ReplicaInaccessibleDateTimeHasBeenSet() const { return m_replicaInaccessibleDateTimeHasBeenSet; }
233 template <typename ReplicaInaccessibleDateTimeT = Aws::Utils::DateTime>
234 void SetReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT&& value) {
235 m_replicaInaccessibleDateTimeHasBeenSet = true;
236 m_replicaInaccessibleDateTime = std::forward<ReplicaInaccessibleDateTimeT>(value);
237 }
238 template <typename ReplicaInaccessibleDateTimeT = Aws::Utils::DateTime>
239 ReplicaDescription& WithReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT&& value) {
240 SetReplicaInaccessibleDateTime(std::forward<ReplicaInaccessibleDateTimeT>(value));
241 return *this;
242 }
244
246
247 inline const TableClassSummary& GetReplicaTableClassSummary() const { return m_replicaTableClassSummary; }
248 inline bool ReplicaTableClassSummaryHasBeenSet() const { return m_replicaTableClassSummaryHasBeenSet; }
249 template <typename ReplicaTableClassSummaryT = TableClassSummary>
250 void SetReplicaTableClassSummary(ReplicaTableClassSummaryT&& value) {
251 m_replicaTableClassSummaryHasBeenSet = true;
252 m_replicaTableClassSummary = std::forward<ReplicaTableClassSummaryT>(value);
253 }
254 template <typename ReplicaTableClassSummaryT = TableClassSummary>
255 ReplicaDescription& WithReplicaTableClassSummary(ReplicaTableClassSummaryT&& value) {
256 SetReplicaTableClassSummary(std::forward<ReplicaTableClassSummaryT>(value));
257 return *this;
258 }
260
262
272 inline GlobalTableSettingsReplicationMode GetGlobalTableSettingsReplicationMode() const { return m_globalTableSettingsReplicationMode; }
273 inline bool GlobalTableSettingsReplicationModeHasBeenSet() const { return m_globalTableSettingsReplicationModeHasBeenSet; }
275 m_globalTableSettingsReplicationModeHasBeenSet = true;
276 m_globalTableSettingsReplicationMode = value;
277 }
280 return *this;
281 }
283 private:
284 Aws::String m_regionName;
285
286 ReplicaStatus m_replicaStatus{ReplicaStatus::NOT_SET};
287
288 Aws::String m_replicaStatusDescription;
289
290 Aws::String m_replicaStatusPercentProgress;
291
292 Aws::String m_kMSMasterKeyId;
293
294 ProvisionedThroughputOverride m_provisionedThroughputOverride;
295
296 OnDemandThroughputOverride m_onDemandThroughputOverride;
297
298 TableWarmThroughputDescription m_warmThroughput;
299
301
302 Aws::Utils::DateTime m_replicaInaccessibleDateTime{};
303
304 TableClassSummary m_replicaTableClassSummary;
305
307 bool m_regionNameHasBeenSet = false;
308 bool m_replicaStatusHasBeenSet = false;
309 bool m_replicaStatusDescriptionHasBeenSet = false;
310 bool m_replicaStatusPercentProgressHasBeenSet = false;
311 bool m_kMSMasterKeyIdHasBeenSet = false;
312 bool m_provisionedThroughputOverrideHasBeenSet = false;
313 bool m_onDemandThroughputOverrideHasBeenSet = false;
314 bool m_warmThroughputHasBeenSet = false;
315 bool m_globalSecondaryIndexesHasBeenSet = false;
316 bool m_replicaInaccessibleDateTimeHasBeenSet = false;
317 bool m_replicaTableClassSummaryHasBeenSet = false;
318 bool m_globalTableSettingsReplicationModeHasBeenSet = false;
319};
320
321} // namespace Model
322} // namespace DynamoDB
323} // 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
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)
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