AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Cluster.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/docdb-elastic/model/Auth.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb-elastic/model/Status.h>
12#include <aws/docdb-elastic/model/Shard.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DocDBElastic
26{
27namespace Model
28{
29
36 class Cluster
37 {
38 public:
39 AWS_DOCDBELASTIC_API Cluster() = default;
40 AWS_DOCDBELASTIC_API Cluster(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DOCDBELASTIC_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAdminUserName() const { return m_adminUserName; }
50 inline bool AdminUserNameHasBeenSet() const { return m_adminUserNameHasBeenSet; }
51 template<typename AdminUserNameT = Aws::String>
52 void SetAdminUserName(AdminUserNameT&& value) { m_adminUserNameHasBeenSet = true; m_adminUserName = std::forward<AdminUserNameT>(value); }
53 template<typename AdminUserNameT = Aws::String>
54 Cluster& WithAdminUserName(AdminUserNameT&& value) { SetAdminUserName(std::forward<AdminUserNameT>(value)); return *this;}
56
58
61 inline Auth GetAuthType() const { return m_authType; }
62 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
63 inline void SetAuthType(Auth value) { m_authTypeHasBeenSet = true; m_authType = value; }
64 inline Cluster& WithAuthType(Auth value) { SetAuthType(value); return *this;}
66
68
71 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
72 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
73 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
74 inline Cluster& WithBackupRetentionPeriod(int value) { SetBackupRetentionPeriod(value); return *this;}
76
78
81 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
82 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
83 template<typename ClusterArnT = Aws::String>
84 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
85 template<typename ClusterArnT = Aws::String>
86 Cluster& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetClusterEndpoint() const { return m_clusterEndpoint; }
94 inline bool ClusterEndpointHasBeenSet() const { return m_clusterEndpointHasBeenSet; }
95 template<typename ClusterEndpointT = Aws::String>
96 void SetClusterEndpoint(ClusterEndpointT&& value) { m_clusterEndpointHasBeenSet = true; m_clusterEndpoint = std::forward<ClusterEndpointT>(value); }
97 template<typename ClusterEndpointT = Aws::String>
98 Cluster& WithClusterEndpoint(ClusterEndpointT&& value) { SetClusterEndpoint(std::forward<ClusterEndpointT>(value)); return *this;}
100
102
105 inline const Aws::String& GetClusterName() const { return m_clusterName; }
106 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
107 template<typename ClusterNameT = Aws::String>
108 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
109 template<typename ClusterNameT = Aws::String>
110 Cluster& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
112
114
118 inline const Aws::String& GetCreateTime() const { return m_createTime; }
119 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
120 template<typename CreateTimeT = Aws::String>
121 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
122 template<typename CreateTimeT = Aws::String>
123 Cluster& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
125
127
130 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
131 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
132 template<typename KmsKeyIdT = Aws::String>
133 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
134 template<typename KmsKeyIdT = Aws::String>
135 Cluster& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
137
139
143 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
144 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
145 template<typename PreferredBackupWindowT = Aws::String>
146 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value); }
147 template<typename PreferredBackupWindowT = Aws::String>
148 Cluster& WithPreferredBackupWindow(PreferredBackupWindowT&& value) { SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value)); return *this;}
150
152
157 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
158 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
159 template<typename PreferredMaintenanceWindowT = Aws::String>
160 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
161 template<typename PreferredMaintenanceWindowT = Aws::String>
162 Cluster& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value)); return *this;}
164
166
170 inline int GetShardCapacity() const { return m_shardCapacity; }
171 inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; }
172 inline void SetShardCapacity(int value) { m_shardCapacityHasBeenSet = true; m_shardCapacity = value; }
173 inline Cluster& WithShardCapacity(int value) { SetShardCapacity(value); return *this;}
175
177
180 inline int GetShardCount() const { return m_shardCount; }
181 inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
182 inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; }
183 inline Cluster& WithShardCount(int value) { SetShardCount(value); return *this;}
185
187
193 inline int GetShardInstanceCount() const { return m_shardInstanceCount; }
194 inline bool ShardInstanceCountHasBeenSet() const { return m_shardInstanceCountHasBeenSet; }
195 inline void SetShardInstanceCount(int value) { m_shardInstanceCountHasBeenSet = true; m_shardInstanceCount = value; }
196 inline Cluster& WithShardInstanceCount(int value) { SetShardInstanceCount(value); return *this;}
198
200
203 inline const Aws::Vector<Shard>& GetShards() const { return m_shards; }
204 inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
205 template<typename ShardsT = Aws::Vector<Shard>>
206 void SetShards(ShardsT&& value) { m_shardsHasBeenSet = true; m_shards = std::forward<ShardsT>(value); }
207 template<typename ShardsT = Aws::Vector<Shard>>
208 Cluster& WithShards(ShardsT&& value) { SetShards(std::forward<ShardsT>(value)); return *this;}
209 template<typename ShardsT = Shard>
210 Cluster& AddShards(ShardsT&& value) { m_shardsHasBeenSet = true; m_shards.emplace_back(std::forward<ShardsT>(value)); return *this; }
212
214
217 inline Status GetStatus() const { return m_status; }
218 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
219 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
220 inline Cluster& WithStatus(Status value) { SetStatus(value); return *this;}
222
224
227 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
228 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
229 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
230 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
231 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
232 Cluster& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
233 template<typename SubnetIdsT = Aws::String>
234 Cluster& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
236
238
241 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
242 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
243 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
244 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
245 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
246 Cluster& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
247 template<typename VpcSecurityGroupIdsT = Aws::String>
248 Cluster& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
250 private:
251
252 Aws::String m_adminUserName;
253 bool m_adminUserNameHasBeenSet = false;
254
255 Auth m_authType{Auth::NOT_SET};
256 bool m_authTypeHasBeenSet = false;
257
258 int m_backupRetentionPeriod{0};
259 bool m_backupRetentionPeriodHasBeenSet = false;
260
261 Aws::String m_clusterArn;
262 bool m_clusterArnHasBeenSet = false;
263
264 Aws::String m_clusterEndpoint;
265 bool m_clusterEndpointHasBeenSet = false;
266
267 Aws::String m_clusterName;
268 bool m_clusterNameHasBeenSet = false;
269
270 Aws::String m_createTime;
271 bool m_createTimeHasBeenSet = false;
272
273 Aws::String m_kmsKeyId;
274 bool m_kmsKeyIdHasBeenSet = false;
275
276 Aws::String m_preferredBackupWindow;
277 bool m_preferredBackupWindowHasBeenSet = false;
278
279 Aws::String m_preferredMaintenanceWindow;
280 bool m_preferredMaintenanceWindowHasBeenSet = false;
281
282 int m_shardCapacity{0};
283 bool m_shardCapacityHasBeenSet = false;
284
285 int m_shardCount{0};
286 bool m_shardCountHasBeenSet = false;
287
288 int m_shardInstanceCount{0};
289 bool m_shardInstanceCountHasBeenSet = false;
290
291 Aws::Vector<Shard> m_shards;
292 bool m_shardsHasBeenSet = false;
293
294 Status m_status{Status::NOT_SET};
295 bool m_statusHasBeenSet = false;
296
297 Aws::Vector<Aws::String> m_subnetIds;
298 bool m_subnetIdsHasBeenSet = false;
299
300 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
301 bool m_vpcSecurityGroupIdsHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace DocDBElastic
306} // namespace Aws
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition Cluster.h:241
Cluster & WithBackupRetentionPeriod(int value)
Definition Cluster.h:74
Cluster & WithShardCount(int value)
Definition Cluster.h:183
Cluster & WithShards(ShardsT &&value)
Definition Cluster.h:208
bool BackupRetentionPeriodHasBeenSet() const
Definition Cluster.h:72
Cluster & WithShardCapacity(int value)
Definition Cluster.h:173
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithAdminUserName(AdminUserNameT &&value)
Definition Cluster.h:54
void SetStatus(Status value)
Definition Cluster.h:219
const Aws::String & GetCreateTime() const
Definition Cluster.h:118
void SetShardCapacity(int value)
Definition Cluster.h:172
const Aws::String & GetAdminUserName() const
Definition Cluster.h:49
const Aws::String & GetKmsKeyId() const
Definition Cluster.h:130
void SetSubnetIds(SubnetIdsT &&value)
Definition Cluster.h:230
bool AdminUserNameHasBeenSet() const
Definition Cluster.h:50
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Cluster.h:227
void SetAdminUserName(AdminUserNameT &&value)
Definition Cluster.h:52
Cluster & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Definition Cluster.h:162
Cluster & AddSubnetIds(SubnetIdsT &&value)
Definition Cluster.h:234
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:86
bool PreferredBackupWindowHasBeenSet() const
Definition Cluster.h:144
const Aws::String & GetPreferredBackupWindow() const
Definition Cluster.h:143
void SetAuthType(Auth value)
Definition Cluster.h:63
void SetShardInstanceCount(int value)
Definition Cluster.h:195
Cluster & WithClusterEndpoint(ClusterEndpointT &&value)
Definition Cluster.h:98
Cluster & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition Cluster.h:148
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition Cluster.h:244
const Aws::String & GetClusterEndpoint() const
Definition Cluster.h:93
const Aws::String & GetClusterName() const
Definition Cluster.h:105
const Aws::String & GetPreferredMaintenanceWindow() const
Definition Cluster.h:157
const Aws::Vector< Shard > & GetShards() const
Definition Cluster.h:203
Cluster & WithSubnetIds(SubnetIdsT &&value)
Definition Cluster.h:232
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Cluster.h:133
void SetClusterName(ClusterNameT &&value)
Definition Cluster.h:108
void SetClusterArn(ClusterArnT &&value)
Definition Cluster.h:84
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
Definition Cluster.h:146
AWS_DOCDBELASTIC_API Cluster()=default
Cluster & WithStatus(Status value)
Definition Cluster.h:220
Cluster & WithCreateTime(CreateTimeT &&value)
Definition Cluster.h:123
Cluster & WithKmsKeyId(KmsKeyIdT &&value)
Definition Cluster.h:135
bool VpcSecurityGroupIdsHasBeenSet() const
Definition Cluster.h:242
bool PreferredMaintenanceWindowHasBeenSet() const
Definition Cluster.h:158
void SetShards(ShardsT &&value)
Definition Cluster.h:206
void SetBackupRetentionPeriod(int value)
Definition Cluster.h:73
Cluster & AddShards(ShardsT &&value)
Definition Cluster.h:210
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Definition Cluster.h:160
bool ShardInstanceCountHasBeenSet() const
Definition Cluster.h:194
Cluster & WithClusterName(ClusterNameT &&value)
Definition Cluster.h:110
void SetCreateTime(CreateTimeT &&value)
Definition Cluster.h:121
Cluster & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition Cluster.h:246
const Aws::String & GetClusterArn() const
Definition Cluster.h:81
Cluster & WithShardInstanceCount(int value)
Definition Cluster.h:196
bool ClusterEndpointHasBeenSet() const
Definition Cluster.h:94
void SetClusterEndpoint(ClusterEndpointT &&value)
Definition Cluster.h:96
Cluster & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition Cluster.h:248
Cluster & WithAuthType(Auth value)
Definition Cluster.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue