AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
Cluster.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
10#include <aws/docdb-elastic/model/Auth.h>
11#include <aws/docdb-elastic/model/Shard.h>
12#include <aws/docdb-elastic/model/Status.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DocDBElastic {
24namespace Model {
25
32class Cluster {
33 public:
34 AWS_DOCDBELASTIC_API Cluster() = default;
35 AWS_DOCDBELASTIC_API Cluster(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DOCDBELASTIC_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAdminUserName() const { return m_adminUserName; }
44 inline bool AdminUserNameHasBeenSet() const { return m_adminUserNameHasBeenSet; }
45 template <typename AdminUserNameT = Aws::String>
46 void SetAdminUserName(AdminUserNameT&& value) {
47 m_adminUserNameHasBeenSet = true;
48 m_adminUserName = std::forward<AdminUserNameT>(value);
49 }
50 template <typename AdminUserNameT = Aws::String>
51 Cluster& WithAdminUserName(AdminUserNameT&& value) {
52 SetAdminUserName(std::forward<AdminUserNameT>(value));
53 return *this;
54 }
56
58
61 inline Auth GetAuthType() const { return m_authType; }
62 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
63 inline void SetAuthType(Auth value) {
64 m_authTypeHasBeenSet = true;
65 m_authType = value;
66 }
67 inline Cluster& WithAuthType(Auth value) {
68 SetAuthType(value);
69 return *this;
70 }
72
74
77 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
78 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
79 inline void SetBackupRetentionPeriod(int value) {
80 m_backupRetentionPeriodHasBeenSet = true;
81 m_backupRetentionPeriod = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
94 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
95 template <typename ClusterArnT = Aws::String>
96 void SetClusterArn(ClusterArnT&& value) {
97 m_clusterArnHasBeenSet = true;
98 m_clusterArn = std::forward<ClusterArnT>(value);
99 }
100 template <typename ClusterArnT = Aws::String>
101 Cluster& WithClusterArn(ClusterArnT&& value) {
102 SetClusterArn(std::forward<ClusterArnT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetClusterEndpoint() const { return m_clusterEndpoint; }
112 inline bool ClusterEndpointHasBeenSet() const { return m_clusterEndpointHasBeenSet; }
113 template <typename ClusterEndpointT = Aws::String>
114 void SetClusterEndpoint(ClusterEndpointT&& value) {
115 m_clusterEndpointHasBeenSet = true;
116 m_clusterEndpoint = std::forward<ClusterEndpointT>(value);
117 }
118 template <typename ClusterEndpointT = Aws::String>
119 Cluster& WithClusterEndpoint(ClusterEndpointT&& value) {
120 SetClusterEndpoint(std::forward<ClusterEndpointT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetClusterName() const { return m_clusterName; }
130 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
131 template <typename ClusterNameT = Aws::String>
132 void SetClusterName(ClusterNameT&& value) {
133 m_clusterNameHasBeenSet = true;
134 m_clusterName = std::forward<ClusterNameT>(value);
135 }
136 template <typename ClusterNameT = Aws::String>
137 Cluster& WithClusterName(ClusterNameT&& value) {
138 SetClusterName(std::forward<ClusterNameT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetCreateTime() const { return m_createTime; }
149 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
150 template <typename CreateTimeT = Aws::String>
151 void SetCreateTime(CreateTimeT&& value) {
152 m_createTimeHasBeenSet = true;
153 m_createTime = std::forward<CreateTimeT>(value);
154 }
155 template <typename CreateTimeT = Aws::String>
156 Cluster& WithCreateTime(CreateTimeT&& value) {
157 SetCreateTime(std::forward<CreateTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
167 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
168 template <typename KmsKeyIdT = Aws::String>
169 void SetKmsKeyId(KmsKeyIdT&& value) {
170 m_kmsKeyIdHasBeenSet = true;
171 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
172 }
173 template <typename KmsKeyIdT = Aws::String>
174 Cluster& WithKmsKeyId(KmsKeyIdT&& value) {
175 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
186 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
187 template <typename PreferredBackupWindowT = Aws::String>
188 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) {
189 m_preferredBackupWindowHasBeenSet = true;
190 m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value);
191 }
192 template <typename PreferredBackupWindowT = Aws::String>
193 Cluster& WithPreferredBackupWindow(PreferredBackupWindowT&& value) {
194 SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value));
195 return *this;
196 }
198
200
205 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
206 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
207 template <typename PreferredMaintenanceWindowT = Aws::String>
208 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
209 m_preferredMaintenanceWindowHasBeenSet = true;
210 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
211 }
212 template <typename PreferredMaintenanceWindowT = Aws::String>
213 Cluster& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
214 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
215 return *this;
216 }
218
220
224 inline int GetShardCapacity() const { return m_shardCapacity; }
225 inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; }
226 inline void SetShardCapacity(int value) {
227 m_shardCapacityHasBeenSet = true;
228 m_shardCapacity = value;
229 }
230 inline Cluster& WithShardCapacity(int value) {
231 SetShardCapacity(value);
232 return *this;
233 }
235
237
240 inline int GetShardCount() const { return m_shardCount; }
241 inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
242 inline void SetShardCount(int value) {
243 m_shardCountHasBeenSet = true;
244 m_shardCount = value;
245 }
246 inline Cluster& WithShardCount(int value) {
247 SetShardCount(value);
248 return *this;
249 }
251
253
259 inline int GetShardInstanceCount() const { return m_shardInstanceCount; }
260 inline bool ShardInstanceCountHasBeenSet() const { return m_shardInstanceCountHasBeenSet; }
261 inline void SetShardInstanceCount(int value) {
262 m_shardInstanceCountHasBeenSet = true;
263 m_shardInstanceCount = value;
264 }
265 inline Cluster& WithShardInstanceCount(int value) {
267 return *this;
268 }
270
272
275 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
276 inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
277 template <typename ShardsT = Aws::Vector<Shard>>
278 void SetShards(ShardsT&& value) {
279 m_shardsHasBeenSet = true;
280 m_shards = std::forward<ShardsT>(value);
281 }
282 template <typename ShardsT = Aws::Vector<Shard>>
283 Cluster& WithShards(ShardsT&& value) {
284 SetShards(std::forward<ShardsT>(value));
285 return *this;
286 }
287 template <typename ShardsT = Shard>
288 Cluster& AddShards(ShardsT&& value) {
289 m_shardsHasBeenSet = true;
290 m_shards.emplace_back(std::forward<ShardsT>(value));
291 return *this;
292 }
294
296
299 inline Status GetStatus() const { return m_status; }
300 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
301 inline void SetStatus(Status value) {
302 m_statusHasBeenSet = true;
303 m_status = value;
304 }
305 inline Cluster& WithStatus(Status value) {
306 SetStatus(value);
307 return *this;
308 }
310
312
315 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
316 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
317 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
318 void SetSubnetIds(SubnetIdsT&& value) {
319 m_subnetIdsHasBeenSet = true;
320 m_subnetIds = std::forward<SubnetIdsT>(value);
321 }
322 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
323 Cluster& WithSubnetIds(SubnetIdsT&& value) {
324 SetSubnetIds(std::forward<SubnetIdsT>(value));
325 return *this;
326 }
327 template <typename SubnetIdsT = Aws::String>
328 Cluster& AddSubnetIds(SubnetIdsT&& value) {
329 m_subnetIdsHasBeenSet = true;
330 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
331 return *this;
332 }
334
336
339 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
340 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
341 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
342 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
343 m_vpcSecurityGroupIdsHasBeenSet = true;
344 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
345 }
346 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
347 Cluster& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
348 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
349 return *this;
350 }
351 template <typename VpcSecurityGroupIdsT = Aws::String>
352 Cluster& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
353 m_vpcSecurityGroupIdsHasBeenSet = true;
354 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
355 return *this;
356 }
358 private:
359 Aws::String m_adminUserName;
360
361 Auth m_authType{Auth::NOT_SET};
362
363 int m_backupRetentionPeriod{0};
364
365 Aws::String m_clusterArn;
366
367 Aws::String m_clusterEndpoint;
368
369 Aws::String m_clusterName;
370
371 Aws::String m_createTime;
372
373 Aws::String m_kmsKeyId;
374
375 Aws::String m_preferredBackupWindow;
376
377 Aws::String m_preferredMaintenanceWindow;
378
379 int m_shardCapacity{0};
380
381 int m_shardCount{0};
382
383 int m_shardInstanceCount{0};
384
385 Aws::Vector<Shard> m_shards;
386
387 Status m_status{Status::NOT_SET};
388
389 Aws::Vector<Aws::String> m_subnetIds;
390
391 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
392 bool m_adminUserNameHasBeenSet = false;
393 bool m_authTypeHasBeenSet = false;
394 bool m_backupRetentionPeriodHasBeenSet = false;
395 bool m_clusterArnHasBeenSet = false;
396 bool m_clusterEndpointHasBeenSet = false;
397 bool m_clusterNameHasBeenSet = false;
398 bool m_createTimeHasBeenSet = false;
399 bool m_kmsKeyIdHasBeenSet = false;
400 bool m_preferredBackupWindowHasBeenSet = false;
401 bool m_preferredMaintenanceWindowHasBeenSet = false;
402 bool m_shardCapacityHasBeenSet = false;
403 bool m_shardCountHasBeenSet = false;
404 bool m_shardInstanceCountHasBeenSet = false;
405 bool m_shardsHasBeenSet = false;
406 bool m_statusHasBeenSet = false;
407 bool m_subnetIdsHasBeenSet = false;
408 bool m_vpcSecurityGroupIdsHasBeenSet = false;
409};
410
411} // namespace Model
412} // namespace DocDBElastic
413} // namespace Aws
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition Cluster.h:339
Cluster & WithBackupRetentionPeriod(int value)
Definition Cluster.h:83
Cluster & WithShardCount(int value)
Definition Cluster.h:246
Cluster & WithShards(ShardsT &&value)
Definition Cluster.h:283
bool BackupRetentionPeriodHasBeenSet() const
Definition Cluster.h:78
Cluster & WithShardCapacity(int value)
Definition Cluster.h:230
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithAdminUserName(AdminUserNameT &&value)
Definition Cluster.h:51
void SetStatus(Status value)
Definition Cluster.h:301
const Aws::String & GetCreateTime() const
Definition Cluster.h:148
void SetShardCapacity(int value)
Definition Cluster.h:226
const Aws::String & GetAdminUserName() const
Definition Cluster.h:43
const Aws::String & GetKmsKeyId() const
Definition Cluster.h:166
void SetSubnetIds(SubnetIdsT &&value)
Definition Cluster.h:318
bool AdminUserNameHasBeenSet() const
Definition Cluster.h:44
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Cluster.h:315
void SetAdminUserName(AdminUserNameT &&value)
Definition Cluster.h:46
Cluster & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Definition Cluster.h:213
Cluster & AddSubnetIds(SubnetIdsT &&value)
Definition Cluster.h:328
AWS_DOCDBELASTIC_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DOCDBELASTIC_API Cluster(Aws::Utils::Json::JsonView jsonValue)
Cluster & WithClusterArn(ClusterArnT &&value)
Definition Cluster.h:101
bool PreferredBackupWindowHasBeenSet() const
Definition Cluster.h:186
const Aws::String & GetPreferredBackupWindow() const
Definition Cluster.h:185
void SetAuthType(Auth value)
Definition Cluster.h:63
void SetShardInstanceCount(int value)
Definition Cluster.h:261
Cluster & WithClusterEndpoint(ClusterEndpointT &&value)
Definition Cluster.h:119
Cluster & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition Cluster.h:193
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition Cluster.h:342
const Aws::String & GetClusterEndpoint() const
Definition Cluster.h:111
const Aws::String & GetClusterName() const
Definition Cluster.h:129
const Aws::String & GetPreferredMaintenanceWindow() const
Definition Cluster.h:205
const Aws::Vector< Shard > & GetShards() const
Definition Cluster.h:275
Cluster & WithSubnetIds(SubnetIdsT &&value)
Definition Cluster.h:323
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Cluster.h:169
void SetClusterName(ClusterNameT &&value)
Definition Cluster.h:132
void SetClusterArn(ClusterArnT &&value)
Definition Cluster.h:96
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition Cluster.h:188
AWS_DOCDBELASTIC_API Cluster()=default
Cluster & WithStatus(Status value)
Definition Cluster.h:305
Cluster & WithCreateTime(CreateTimeT &&value)
Definition Cluster.h:156
Cluster & WithKmsKeyId(KmsKeyIdT &&value)
Definition Cluster.h:174
bool VpcSecurityGroupIdsHasBeenSet() const
Definition Cluster.h:340
bool PreferredMaintenanceWindowHasBeenSet() const
Definition Cluster.h:206
void SetShards(ShardsT &&value)
Definition Cluster.h:278
void SetBackupRetentionPeriod(int value)
Definition Cluster.h:79
Cluster & AddShards(ShardsT &&value)
Definition Cluster.h:288
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Definition Cluster.h:208
bool ShardInstanceCountHasBeenSet() const
Definition Cluster.h:260
Cluster & WithClusterName(ClusterNameT &&value)
Definition Cluster.h:137
void SetCreateTime(CreateTimeT &&value)
Definition Cluster.h:151
Cluster & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition Cluster.h:347
const Aws::String & GetClusterArn() const
Definition Cluster.h:93
Cluster & WithShardInstanceCount(int value)
Definition Cluster.h:265
bool ClusterEndpointHasBeenSet() const
Definition Cluster.h:112
void SetClusterEndpoint(ClusterEndpointT &&value)
Definition Cluster.h:114
Cluster & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition Cluster.h:352
Cluster & WithAuthType(Auth value)
Definition Cluster.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue