AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/docdb-elastic/DocDBElasticRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/docdb-elastic/model/Auth.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DocDBElastic
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DOCDBELASTIC_API CreateClusterRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
35
36 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
37
38
40
46 inline const Aws::String& GetAdminUserName() const{ return m_adminUserName; }
47 inline bool AdminUserNameHasBeenSet() const { return m_adminUserNameHasBeenSet; }
48 inline void SetAdminUserName(const Aws::String& value) { m_adminUserNameHasBeenSet = true; m_adminUserName = value; }
49 inline void SetAdminUserName(Aws::String&& value) { m_adminUserNameHasBeenSet = true; m_adminUserName = std::move(value); }
50 inline void SetAdminUserName(const char* value) { m_adminUserNameHasBeenSet = true; m_adminUserName.assign(value); }
51 inline CreateClusterRequest& WithAdminUserName(const Aws::String& value) { SetAdminUserName(value); return *this;}
52 inline CreateClusterRequest& WithAdminUserName(Aws::String&& value) { SetAdminUserName(std::move(value)); return *this;}
53 inline CreateClusterRequest& WithAdminUserName(const char* value) { SetAdminUserName(value); return *this;}
55
57
64 inline const Aws::String& GetAdminUserPassword() const{ return m_adminUserPassword; }
65 inline bool AdminUserPasswordHasBeenSet() const { return m_adminUserPasswordHasBeenSet; }
66 inline void SetAdminUserPassword(const Aws::String& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = value; }
67 inline void SetAdminUserPassword(Aws::String&& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = std::move(value); }
68 inline void SetAdminUserPassword(const char* value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword.assign(value); }
69 inline CreateClusterRequest& WithAdminUserPassword(const Aws::String& value) { SetAdminUserPassword(value); return *this;}
70 inline CreateClusterRequest& WithAdminUserPassword(Aws::String&& value) { SetAdminUserPassword(std::move(value)); return *this;}
71 inline CreateClusterRequest& WithAdminUserPassword(const char* value) { SetAdminUserPassword(value); return *this;}
73
75
80 inline const Auth& GetAuthType() const{ return m_authType; }
81 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
82 inline void SetAuthType(const Auth& value) { m_authTypeHasBeenSet = true; m_authType = value; }
83 inline void SetAuthType(Auth&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
84 inline CreateClusterRequest& WithAuthType(const Auth& value) { SetAuthType(value); return *this;}
85 inline CreateClusterRequest& WithAuthType(Auth&& value) { SetAuthType(std::move(value)); return *this;}
87
89
92 inline int GetBackupRetentionPeriod() const{ return m_backupRetentionPeriod; }
93 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
94 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
97
99
102 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
105 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
106 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
107 inline CreateClusterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
108 inline CreateClusterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
109 inline CreateClusterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
111
113
120 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
121 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
122 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
123 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
124 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
125 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
126 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
127 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
129
131
140 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
141 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
142 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
143 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
144 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
145 inline CreateClusterRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
146 inline CreateClusterRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
147 inline CreateClusterRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
149
151
156 inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
157 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
158 inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
159 inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
160 inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
162 inline CreateClusterRequest& WithPreferredBackupWindow(Aws::String&& value) { SetPreferredBackupWindow(std::move(value)); return *this;}
163 inline CreateClusterRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
165
167
176 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
177 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
178 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
179 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
180 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
185
187
191 inline int GetShardCapacity() const{ return m_shardCapacity; }
192 inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; }
193 inline void SetShardCapacity(int value) { m_shardCapacityHasBeenSet = true; m_shardCapacity = value; }
194 inline CreateClusterRequest& WithShardCapacity(int value) { SetShardCapacity(value); return *this;}
196
198
201 inline int GetShardCount() const{ return m_shardCount; }
202 inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
203 inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; }
204 inline CreateClusterRequest& WithShardCount(int value) { SetShardCount(value); return *this;}
206
208
214 inline int GetShardInstanceCount() const{ return m_shardInstanceCount; }
215 inline bool ShardInstanceCountHasBeenSet() const { return m_shardInstanceCountHasBeenSet; }
216 inline void SetShardInstanceCount(int value) { m_shardInstanceCountHasBeenSet = true; m_shardInstanceCount = value; }
217 inline CreateClusterRequest& WithShardInstanceCount(int value) { SetShardInstanceCount(value); return *this;}
219
221
224 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
225 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
226 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
227 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
228 inline CreateClusterRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
229 inline CreateClusterRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
230 inline CreateClusterRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
231 inline CreateClusterRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
232 inline CreateClusterRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
234
236
239 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
240 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
241 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
242 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
243 inline CreateClusterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
244 inline CreateClusterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
245 inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
246 inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
247 inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
248 inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
249 inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
250 inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
251 inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
253
255
259 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
260 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
261 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
262 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
265 inline CreateClusterRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
266 inline CreateClusterRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
267 inline CreateClusterRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
269 private:
270
271 Aws::String m_adminUserName;
272 bool m_adminUserNameHasBeenSet = false;
273
274 Aws::String m_adminUserPassword;
275 bool m_adminUserPasswordHasBeenSet = false;
276
277 Auth m_authType;
278 bool m_authTypeHasBeenSet = false;
279
280 int m_backupRetentionPeriod;
281 bool m_backupRetentionPeriodHasBeenSet = false;
282
283 Aws::String m_clientToken;
284 bool m_clientTokenHasBeenSet = false;
285
286 Aws::String m_clusterName;
287 bool m_clusterNameHasBeenSet = false;
288
289 Aws::String m_kmsKeyId;
290 bool m_kmsKeyIdHasBeenSet = false;
291
292 Aws::String m_preferredBackupWindow;
293 bool m_preferredBackupWindowHasBeenSet = false;
294
295 Aws::String m_preferredMaintenanceWindow;
296 bool m_preferredMaintenanceWindowHasBeenSet = false;
297
298 int m_shardCapacity;
299 bool m_shardCapacityHasBeenSet = false;
300
301 int m_shardCount;
302 bool m_shardCountHasBeenSet = false;
303
304 int m_shardInstanceCount;
305 bool m_shardInstanceCountHasBeenSet = false;
306
307 Aws::Vector<Aws::String> m_subnetIds;
308 bool m_subnetIdsHasBeenSet = false;
309
311 bool m_tagsHasBeenSet = false;
312
313 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
314 bool m_vpcSecurityGroupIdsHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace DocDBElastic
319} // namespace Aws
CreateClusterRequest & WithClientToken(const Aws::String &value)
CreateClusterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterRequest & WithPreferredBackupWindow(const Aws::String &value)
CreateClusterRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateClusterRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithAuthType(Auth &&value)
CreateClusterRequest & AddSubnetIds(Aws::String &&value)
CreateClusterRequest & WithKmsKeyId(const char *value)
CreateClusterRequest & WithPreferredBackupWindow(const char *value)
CreateClusterRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithShardInstanceCount(int value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithAdminUserName(const char *value)
CreateClusterRequest & WithClientToken(const char *value)
CreateClusterRequest & WithAuthType(const Auth &value)
CreateClusterRequest & AddVpcSecurityGroupIds(const char *value)
CreateClusterRequest & AddVpcSecurityGroupIds(Aws::String &&value)
CreateClusterRequest & WithKmsKeyId(Aws::String &&value)
CreateClusterRequest & AddSubnetIds(const Aws::String &value)
CreateClusterRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateClusterRequest & WithAdminUserPassword(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithClusterName(Aws::String &&value)
void SetPreferredBackupWindow(const Aws::String &value)
CreateClusterRequest & WithClusterName(const char *value)
CreateClusterRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterRequest & AddVpcSecurityGroupIds(const Aws::String &value)
CreateClusterRequest & AddSubnetIds(const char *value)
CreateClusterRequest & WithAdminUserName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
CreateClusterRequest & WithAdminUserPassword(const char *value)
CreateClusterRequest & AddTags(const char *key, const char *value)
CreateClusterRequest & WithShardCount(int value)
CreateClusterRequest & WithKmsKeyId(const Aws::String &value)
CreateClusterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAdminUserPassword(const Aws::String &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithAdminUserName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateClusterRequest & WithAdminUserPassword(const Aws::String &value)
CreateClusterRequest & WithBackupRetentionPeriod(int value)
CreateClusterRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
CreateClusterRequest & WithClusterName(const Aws::String &value)
CreateClusterRequest & WithShardCapacity(int value)
CreateClusterRequest & AddTags(Aws::String &&key, const char *value)
CreateClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithPreferredBackupWindow(Aws::String &&value)
CreateClusterRequest & AddTags(const char *key, Aws::String &&value)
CreateClusterRequest & WithPreferredMaintenanceWindow(const char *value)
CreateClusterRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector