AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReplicaDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/model/ReplicaStatus.h>
10#include <aws/dynamodb/model/ProvisionedThroughputOverride.h>
11#include <aws/dynamodb/model/OnDemandThroughputOverride.h>
12#include <aws/dynamodb/model/TableWarmThroughputDescription.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/dynamodb/model/TableClassSummary.h>
16#include <aws/dynamodb/model/ReplicaGlobalSecondaryIndexDescription.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace DynamoDB
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_DYNAMODB_API ReplicaDescription() = default;
45 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetRegionName() const { return m_regionName; }
53 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
54 template<typename RegionNameT = Aws::String>
55 void SetRegionName(RegionNameT&& value) { m_regionNameHasBeenSet = true; m_regionName = std::forward<RegionNameT>(value); }
56 template<typename RegionNameT = Aws::String>
57 ReplicaDescription& WithRegionName(RegionNameT&& value) { SetRegionName(std::forward<RegionNameT>(value)); return *this;}
59
61
77 inline ReplicaStatus GetReplicaStatus() const { return m_replicaStatus; }
78 inline bool ReplicaStatusHasBeenSet() const { return m_replicaStatusHasBeenSet; }
79 inline void SetReplicaStatus(ReplicaStatus value) { m_replicaStatusHasBeenSet = true; m_replicaStatus = value; }
82
84
87 inline const Aws::String& GetReplicaStatusDescription() const { return m_replicaStatusDescription; }
88 inline bool ReplicaStatusDescriptionHasBeenSet() const { return m_replicaStatusDescriptionHasBeenSet; }
89 template<typename ReplicaStatusDescriptionT = Aws::String>
90 void SetReplicaStatusDescription(ReplicaStatusDescriptionT&& value) { m_replicaStatusDescriptionHasBeenSet = true; m_replicaStatusDescription = std::forward<ReplicaStatusDescriptionT>(value); }
91 template<typename ReplicaStatusDescriptionT = Aws::String>
92 ReplicaDescription& WithReplicaStatusDescription(ReplicaStatusDescriptionT&& value) { SetReplicaStatusDescription(std::forward<ReplicaStatusDescriptionT>(value)); return *this;}
94
96
100 inline const Aws::String& GetReplicaStatusPercentProgress() const { return m_replicaStatusPercentProgress; }
101 inline bool ReplicaStatusPercentProgressHasBeenSet() const { return m_replicaStatusPercentProgressHasBeenSet; }
102 template<typename ReplicaStatusPercentProgressT = Aws::String>
103 void SetReplicaStatusPercentProgress(ReplicaStatusPercentProgressT&& value) { m_replicaStatusPercentProgressHasBeenSet = true; m_replicaStatusPercentProgress = std::forward<ReplicaStatusPercentProgressT>(value); }
104 template<typename ReplicaStatusPercentProgressT = Aws::String>
105 ReplicaDescription& WithReplicaStatusPercentProgress(ReplicaStatusPercentProgressT&& value) { SetReplicaStatusPercentProgress(std::forward<ReplicaStatusPercentProgressT>(value)); return *this;}
107
109
112 inline const Aws::String& GetKMSMasterKeyId() const { return m_kMSMasterKeyId; }
113 inline bool KMSMasterKeyIdHasBeenSet() const { return m_kMSMasterKeyIdHasBeenSet; }
114 template<typename KMSMasterKeyIdT = Aws::String>
115 void SetKMSMasterKeyId(KMSMasterKeyIdT&& value) { m_kMSMasterKeyIdHasBeenSet = true; m_kMSMasterKeyId = std::forward<KMSMasterKeyIdT>(value); }
116 template<typename KMSMasterKeyIdT = Aws::String>
117 ReplicaDescription& WithKMSMasterKeyId(KMSMasterKeyIdT&& value) { SetKMSMasterKeyId(std::forward<KMSMasterKeyIdT>(value)); return *this;}
119
121
125 inline const ProvisionedThroughputOverride& GetProvisionedThroughputOverride() const { return m_provisionedThroughputOverride; }
126 inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; }
127 template<typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
128 void SetProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) { m_provisionedThroughputOverrideHasBeenSet = true; m_provisionedThroughputOverride = std::forward<ProvisionedThroughputOverrideT>(value); }
129 template<typename ProvisionedThroughputOverrideT = ProvisionedThroughputOverride>
130 ReplicaDescription& WithProvisionedThroughputOverride(ProvisionedThroughputOverrideT&& value) { SetProvisionedThroughputOverride(std::forward<ProvisionedThroughputOverrideT>(value)); return *this;}
132
134
138 inline const OnDemandThroughputOverride& GetOnDemandThroughputOverride() const { return m_onDemandThroughputOverride; }
139 inline bool OnDemandThroughputOverrideHasBeenSet() const { return m_onDemandThroughputOverrideHasBeenSet; }
140 template<typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
141 void SetOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) { m_onDemandThroughputOverrideHasBeenSet = true; m_onDemandThroughputOverride = std::forward<OnDemandThroughputOverrideT>(value); }
142 template<typename OnDemandThroughputOverrideT = OnDemandThroughputOverride>
143 ReplicaDescription& WithOnDemandThroughputOverride(OnDemandThroughputOverrideT&& value) { SetOnDemandThroughputOverride(std::forward<OnDemandThroughputOverrideT>(value)); return *this;}
145
147
150 inline const TableWarmThroughputDescription& GetWarmThroughput() const { return m_warmThroughput; }
151 inline bool WarmThroughputHasBeenSet() const { return m_warmThroughputHasBeenSet; }
152 template<typename WarmThroughputT = TableWarmThroughputDescription>
153 void SetWarmThroughput(WarmThroughputT&& value) { m_warmThroughputHasBeenSet = true; m_warmThroughput = std::forward<WarmThroughputT>(value); }
154 template<typename WarmThroughputT = TableWarmThroughputDescription>
155 ReplicaDescription& WithWarmThroughput(WarmThroughputT&& value) { SetWarmThroughput(std::forward<WarmThroughputT>(value)); return *this;}
157
159
162 inline const Aws::Vector<ReplicaGlobalSecondaryIndexDescription>& GetGlobalSecondaryIndexes() const { return m_globalSecondaryIndexes; }
163 inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; }
164 template<typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexDescription>>
165 void SetGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = std::forward<GlobalSecondaryIndexesT>(value); }
166 template<typename GlobalSecondaryIndexesT = Aws::Vector<ReplicaGlobalSecondaryIndexDescription>>
167 ReplicaDescription& WithGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { SetGlobalSecondaryIndexes(std::forward<GlobalSecondaryIndexesT>(value)); return *this;}
168 template<typename GlobalSecondaryIndexesT = ReplicaGlobalSecondaryIndexDescription>
169 ReplicaDescription& AddGlobalSecondaryIndexes(GlobalSecondaryIndexesT&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.emplace_back(std::forward<GlobalSecondaryIndexesT>(value)); return *this; }
171
173
178 inline const Aws::Utils::DateTime& GetReplicaInaccessibleDateTime() const { return m_replicaInaccessibleDateTime; }
179 inline bool ReplicaInaccessibleDateTimeHasBeenSet() const { return m_replicaInaccessibleDateTimeHasBeenSet; }
180 template<typename ReplicaInaccessibleDateTimeT = Aws::Utils::DateTime>
181 void SetReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT&& value) { m_replicaInaccessibleDateTimeHasBeenSet = true; m_replicaInaccessibleDateTime = std::forward<ReplicaInaccessibleDateTimeT>(value); }
182 template<typename ReplicaInaccessibleDateTimeT = Aws::Utils::DateTime>
183 ReplicaDescription& WithReplicaInaccessibleDateTime(ReplicaInaccessibleDateTimeT&& value) { SetReplicaInaccessibleDateTime(std::forward<ReplicaInaccessibleDateTimeT>(value)); return *this;}
185
187
188 inline const TableClassSummary& GetReplicaTableClassSummary() const { return m_replicaTableClassSummary; }
189 inline bool ReplicaTableClassSummaryHasBeenSet() const { return m_replicaTableClassSummaryHasBeenSet; }
190 template<typename ReplicaTableClassSummaryT = TableClassSummary>
191 void SetReplicaTableClassSummary(ReplicaTableClassSummaryT&& value) { m_replicaTableClassSummaryHasBeenSet = true; m_replicaTableClassSummary = std::forward<ReplicaTableClassSummaryT>(value); }
192 template<typename ReplicaTableClassSummaryT = TableClassSummary>
193 ReplicaDescription& WithReplicaTableClassSummary(ReplicaTableClassSummaryT&& value) { SetReplicaTableClassSummary(std::forward<ReplicaTableClassSummaryT>(value)); return *this;}
195 private:
196
197 Aws::String m_regionName;
198 bool m_regionNameHasBeenSet = false;
199
200 ReplicaStatus m_replicaStatus{ReplicaStatus::NOT_SET};
201 bool m_replicaStatusHasBeenSet = false;
202
203 Aws::String m_replicaStatusDescription;
204 bool m_replicaStatusDescriptionHasBeenSet = false;
205
206 Aws::String m_replicaStatusPercentProgress;
207 bool m_replicaStatusPercentProgressHasBeenSet = false;
208
209 Aws::String m_kMSMasterKeyId;
210 bool m_kMSMasterKeyIdHasBeenSet = false;
211
212 ProvisionedThroughputOverride m_provisionedThroughputOverride;
213 bool m_provisionedThroughputOverrideHasBeenSet = false;
214
215 OnDemandThroughputOverride m_onDemandThroughputOverride;
216 bool m_onDemandThroughputOverrideHasBeenSet = false;
217
218 TableWarmThroughputDescription m_warmThroughput;
219 bool m_warmThroughputHasBeenSet = false;
220
222 bool m_globalSecondaryIndexesHasBeenSet = false;
223
224 Aws::Utils::DateTime m_replicaInaccessibleDateTime{};
225 bool m_replicaInaccessibleDateTimeHasBeenSet = false;
226
227 TableClassSummary m_replicaTableClassSummary;
228 bool m_replicaTableClassSummaryHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace DynamoDB
233} // 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
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)
const ProvisionedThroughputOverride & GetProvisionedThroughputOverride() const
ReplicaDescription & WithKMSMasterKeyId(KMSMasterKeyIdT &&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