AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateClusterRequest.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 <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace DocDBElastic
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DOCDBELASTIC_API UpdateClusterRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
34
35 AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override;
36
37
39
45 inline const Aws::String& GetAdminUserPassword() const{ return m_adminUserPassword; }
46 inline bool AdminUserPasswordHasBeenSet() const { return m_adminUserPasswordHasBeenSet; }
47 inline void SetAdminUserPassword(const Aws::String& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = value; }
48 inline void SetAdminUserPassword(Aws::String&& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = std::move(value); }
49 inline void SetAdminUserPassword(const char* value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword.assign(value); }
50 inline UpdateClusterRequest& WithAdminUserPassword(const Aws::String& value) { SetAdminUserPassword(value); return *this;}
51 inline UpdateClusterRequest& WithAdminUserPassword(Aws::String&& value) { SetAdminUserPassword(std::move(value)); return *this;}
52 inline UpdateClusterRequest& WithAdminUserPassword(const char* value) { SetAdminUserPassword(value); return *this;}
54
56
61 inline const Auth& GetAuthType() const{ return m_authType; }
62 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
63 inline void SetAuthType(const Auth& value) { m_authTypeHasBeenSet = true; m_authType = value; }
64 inline void SetAuthType(Auth&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
65 inline UpdateClusterRequest& WithAuthType(const Auth& value) { SetAuthType(value); return *this;}
66 inline UpdateClusterRequest& WithAuthType(Auth&& value) { SetAuthType(std::move(value)); return *this;}
68
70
73 inline int GetBackupRetentionPeriod() const{ return m_backupRetentionPeriod; }
74 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
75 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
78
80
83 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
86 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
87 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
88 inline UpdateClusterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
89 inline UpdateClusterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
90 inline UpdateClusterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
92
94
97 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
98 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
99 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
100 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
101 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
102 inline UpdateClusterRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
103 inline UpdateClusterRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
104 inline UpdateClusterRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
106
108
113 inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
114 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
115 inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
116 inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
117 inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
119 inline UpdateClusterRequest& WithPreferredBackupWindow(Aws::String&& value) { SetPreferredBackupWindow(std::move(value)); return *this;}
120 inline UpdateClusterRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
122
124
133 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
134 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
135 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
136 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
137 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
142
144
148 inline int GetShardCapacity() const{ return m_shardCapacity; }
149 inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; }
150 inline void SetShardCapacity(int value) { m_shardCapacityHasBeenSet = true; m_shardCapacity = value; }
151 inline UpdateClusterRequest& WithShardCapacity(int value) { SetShardCapacity(value); return *this;}
153
155
158 inline int GetShardCount() const{ return m_shardCount; }
159 inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
160 inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; }
161 inline UpdateClusterRequest& WithShardCount(int value) { SetShardCount(value); return *this;}
163
165
171 inline int GetShardInstanceCount() const{ return m_shardInstanceCount; }
172 inline bool ShardInstanceCountHasBeenSet() const { return m_shardInstanceCountHasBeenSet; }
173 inline void SetShardInstanceCount(int value) { m_shardInstanceCountHasBeenSet = true; m_shardInstanceCount = value; }
174 inline UpdateClusterRequest& WithShardInstanceCount(int value) { SetShardInstanceCount(value); return *this;}
176
178
181 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
182 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
183 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
184 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
185 inline UpdateClusterRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
186 inline UpdateClusterRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
187 inline UpdateClusterRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
188 inline UpdateClusterRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
189 inline UpdateClusterRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
191
193
196 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
197 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
198 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
199 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
202 inline UpdateClusterRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
203 inline UpdateClusterRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
204 inline UpdateClusterRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
206 private:
207
208 Aws::String m_adminUserPassword;
209 bool m_adminUserPasswordHasBeenSet = false;
210
211 Auth m_authType;
212 bool m_authTypeHasBeenSet = false;
213
214 int m_backupRetentionPeriod;
215 bool m_backupRetentionPeriodHasBeenSet = false;
216
217 Aws::String m_clientToken;
218 bool m_clientTokenHasBeenSet = false;
219
220 Aws::String m_clusterArn;
221 bool m_clusterArnHasBeenSet = false;
222
223 Aws::String m_preferredBackupWindow;
224 bool m_preferredBackupWindowHasBeenSet = false;
225
226 Aws::String m_preferredMaintenanceWindow;
227 bool m_preferredMaintenanceWindowHasBeenSet = false;
228
229 int m_shardCapacity;
230 bool m_shardCapacityHasBeenSet = false;
231
232 int m_shardCount;
233 bool m_shardCountHasBeenSet = false;
234
235 int m_shardInstanceCount;
236 bool m_shardInstanceCountHasBeenSet = false;
237
238 Aws::Vector<Aws::String> m_subnetIds;
239 bool m_subnetIdsHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
242 bool m_vpcSecurityGroupIdsHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace DocDBElastic
247} // namespace Aws
UpdateClusterRequest & WithPreferredBackupWindow(Aws::String &&value)
UpdateClusterRequest & WithClusterArn(Aws::String &&value)
UpdateClusterRequest & WithClientToken(const char *value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetPreferredMaintenanceWindow(const Aws::String &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
UpdateClusterRequest & WithShardCapacity(int value)
UpdateClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateClusterRequest & WithClientToken(const Aws::String &value)
UpdateClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
UpdateClusterRequest & WithClusterArn(const char *value)
UpdateClusterRequest & WithPreferredBackupWindow(const Aws::String &value)
UpdateClusterRequest & AddVpcSecurityGroupIds(const char *value)
UpdateClusterRequest & WithClientToken(Aws::String &&value)
UpdateClusterRequest & WithAdminUserPassword(const char *value)
UpdateClusterRequest & WithAuthType(Auth &&value)
AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override
UpdateClusterRequest & WithAuthType(const Auth &value)
UpdateClusterRequest & WithBackupRetentionPeriod(int value)
UpdateClusterRequest & AddSubnetIds(const Aws::String &value)
UpdateClusterRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateClusterRequest & WithAdminUserPassword(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateClusterRequest & WithShardCount(int value)
UpdateClusterRequest & WithAdminUserPassword(const Aws::String &value)
UpdateClusterRequest & WithPreferredMaintenanceWindow(const char *value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
UpdateClusterRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
UpdateClusterRequest & WithClusterArn(const Aws::String &value)
UpdateClusterRequest & AddVpcSecurityGroupIds(const Aws::String &value)
void SetAdminUserPassword(const Aws::String &value)
void SetPreferredBackupWindow(const Aws::String &value)
UpdateClusterRequest & AddSubnetIds(Aws::String &&value)
UpdateClusterRequest & WithShardInstanceCount(int value)
UpdateClusterRequest & WithPreferredBackupWindow(const char *value)
UpdateClusterRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateClusterRequest & AddVpcSecurityGroupIds(Aws::String &&value)
UpdateClusterRequest & AddSubnetIds(const char *value)
UpdateClusterRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector