AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyDBClusterRequest.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/CloudwatchLogsExportConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDB
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_DOCDB_API ModifyDBClusterRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ModifyDBCluster"; }
36
37 AWS_DOCDB_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
50 inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
51 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
52 inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
53 inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
54 inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
56 inline ModifyDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
57 inline ModifyDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
59
61
69 inline const Aws::String& GetNewDBClusterIdentifier() const{ return m_newDBClusterIdentifier; }
70 inline bool NewDBClusterIdentifierHasBeenSet() const { return m_newDBClusterIdentifierHasBeenSet; }
71 inline void SetNewDBClusterIdentifier(const Aws::String& value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier = value; }
72 inline void SetNewDBClusterIdentifier(Aws::String&& value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier = std::move(value); }
73 inline void SetNewDBClusterIdentifier(const char* value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier.assign(value); }
76 inline ModifyDBClusterRequest& WithNewDBClusterIdentifier(const char* value) { SetNewDBClusterIdentifier(value); return *this;}
78
80
94 inline bool GetApplyImmediately() const{ return m_applyImmediately; }
95 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
96 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
97 inline ModifyDBClusterRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
99
101
106 inline int GetBackupRetentionPeriod() const{ return m_backupRetentionPeriod; }
107 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
108 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
111
113
116 inline const Aws::String& GetDBClusterParameterGroupName() const{ return m_dBClusterParameterGroupName; }
117 inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; }
118 inline void SetDBClusterParameterGroupName(const Aws::String& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = value; }
119 inline void SetDBClusterParameterGroupName(Aws::String&& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = std::move(value); }
120 inline void SetDBClusterParameterGroupName(const char* value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName.assign(value); }
125
127
131 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
132 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
133 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
134 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
137 inline ModifyDBClusterRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
138 inline ModifyDBClusterRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
139 inline ModifyDBClusterRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
141
143
148 inline int GetPort() const{ return m_port; }
149 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
150 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
151 inline ModifyDBClusterRequest& WithPort(int value) { SetPort(value); return *this;}
153
155
160 inline const Aws::String& GetMasterUserPassword() const{ return m_masterUserPassword; }
161 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
162 inline void SetMasterUserPassword(const Aws::String& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
163 inline void SetMasterUserPassword(Aws::String&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = std::move(value); }
164 inline void SetMasterUserPassword(const char* value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword.assign(value); }
166 inline ModifyDBClusterRequest& WithMasterUserPassword(Aws::String&& value) { SetMasterUserPassword(std::move(value)); return *this;}
167 inline ModifyDBClusterRequest& WithMasterUserPassword(const char* value) { SetMasterUserPassword(value); return *this;}
169
171
181 inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
182 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
183 inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
184 inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
185 inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
188 inline ModifyDBClusterRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
190
192
200 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
201 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
202 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
203 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
204 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
209
211
217 inline const CloudwatchLogsExportConfiguration& GetCloudwatchLogsExportConfiguration() const{ return m_cloudwatchLogsExportConfiguration; }
218 inline bool CloudwatchLogsExportConfigurationHasBeenSet() const { return m_cloudwatchLogsExportConfigurationHasBeenSet; }
219 inline void SetCloudwatchLogsExportConfiguration(const CloudwatchLogsExportConfiguration& value) { m_cloudwatchLogsExportConfigurationHasBeenSet = true; m_cloudwatchLogsExportConfiguration = value; }
220 inline void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfiguration&& value) { m_cloudwatchLogsExportConfigurationHasBeenSet = true; m_cloudwatchLogsExportConfiguration = std::move(value); }
224
226
234 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
235 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
236 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
237 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
238 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
239 inline ModifyDBClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
240 inline ModifyDBClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
241 inline ModifyDBClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
243
245
251 inline bool GetAllowMajorVersionUpgrade() const{ return m_allowMajorVersionUpgrade; }
252 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
253 inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
256
258
265 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
266 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
267 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
268 inline ModifyDBClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
270
272
279 inline const Aws::String& GetStorageType() const{ return m_storageType; }
280 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
281 inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
282 inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
283 inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
284 inline ModifyDBClusterRequest& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
285 inline ModifyDBClusterRequest& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;}
286 inline ModifyDBClusterRequest& WithStorageType(const char* value) { SetStorageType(value); return *this;}
288 private:
289
290 Aws::String m_dBClusterIdentifier;
291 bool m_dBClusterIdentifierHasBeenSet = false;
292
293 Aws::String m_newDBClusterIdentifier;
294 bool m_newDBClusterIdentifierHasBeenSet = false;
295
296 bool m_applyImmediately;
297 bool m_applyImmediatelyHasBeenSet = false;
298
299 int m_backupRetentionPeriod;
300 bool m_backupRetentionPeriodHasBeenSet = false;
301
302 Aws::String m_dBClusterParameterGroupName;
303 bool m_dBClusterParameterGroupNameHasBeenSet = false;
304
305 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
306 bool m_vpcSecurityGroupIdsHasBeenSet = false;
307
308 int m_port;
309 bool m_portHasBeenSet = false;
310
311 Aws::String m_masterUserPassword;
312 bool m_masterUserPasswordHasBeenSet = false;
313
314 Aws::String m_preferredBackupWindow;
315 bool m_preferredBackupWindowHasBeenSet = false;
316
317 Aws::String m_preferredMaintenanceWindow;
318 bool m_preferredMaintenanceWindowHasBeenSet = false;
319
320 CloudwatchLogsExportConfiguration m_cloudwatchLogsExportConfiguration;
321 bool m_cloudwatchLogsExportConfigurationHasBeenSet = false;
322
323 Aws::String m_engineVersion;
324 bool m_engineVersionHasBeenSet = false;
325
326 bool m_allowMajorVersionUpgrade;
327 bool m_allowMajorVersionUpgradeHasBeenSet = false;
328
329 bool m_deletionProtection;
330 bool m_deletionProtectionHasBeenSet = false;
331
332 Aws::String m_storageType;
333 bool m_storageTypeHasBeenSet = false;
334 };
335
336} // namespace Model
337} // namespace DocDB
338} // namespace Aws
ModifyDBClusterRequest & WithPreferredBackupWindow(Aws::String &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDBClusterRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyDBClusterRequest & WithApplyImmediately(bool value)
ModifyDBClusterRequest & WithCloudwatchLogsExportConfiguration(const CloudwatchLogsExportConfiguration &value)
void SetMasterUserPassword(const Aws::String &value)
void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfiguration &&value)
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ModifyDBClusterRequest & AddVpcSecurityGroupIds(Aws::String &&value)
ModifyDBClusterRequest & WithDeletionProtection(bool value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
void SetEngineVersion(const Aws::String &value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(Aws::String &&value)
ModifyDBClusterRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(Aws::String &&value)
ModifyDBClusterRequest & WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfiguration &&value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(const Aws::String &value)
ModifyDBClusterRequest & WithMasterUserPassword(const Aws::String &value)
ModifyDBClusterRequest & WithPreferredBackupWindow(const Aws::String &value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyDBClusterRequest & WithPort(int value)
ModifyDBClusterRequest & WithStorageType(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDBClusterParameterGroupName() const
const CloudwatchLogsExportConfiguration & GetCloudwatchLogsExportConfiguration() const
const Aws::String & GetNewDBClusterIdentifier() const
ModifyDBClusterRequest & WithPreferredBackupWindow(const char *value)
ModifyDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyDBClusterRequest & WithStorageType(const char *value)
const Aws::String & GetPreferredMaintenanceWindow() const
ModifyDBClusterRequest & WithEngineVersion(const Aws::String &value)
ModifyDBClusterRequest & AddVpcSecurityGroupIds(const char *value)
ModifyDBClusterRequest & WithStorageType(const Aws::String &value)
ModifyDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(const char *value)
ModifyDBClusterRequest & AddVpcSecurityGroupIds(const Aws::String &value)
ModifyDBClusterRequest & WithEngineVersion(Aws::String &&value)
void SetCloudwatchLogsExportConfiguration(const CloudwatchLogsExportConfiguration &value)
ModifyDBClusterRequest & WithMasterUserPassword(const char *value)
ModifyDBClusterRequest & WithDBClusterIdentifier(const char *value)
ModifyDBClusterRequest & WithBackupRetentionPeriod(int value)
void SetPreferredBackupWindow(const Aws::String &value)
ModifyDBClusterRequest & WithAllowMajorVersionUpgrade(bool value)
ModifyDBClusterRequest & WithEngineVersion(const char *value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(const Aws::String &value)
ModifyDBClusterRequest & WithMasterUserPassword(Aws::String &&value)
void SetNewDBClusterIdentifier(const Aws::String &value)
void SetDBClusterParameterGroupName(const Aws::String &value)
AWS_DOCDB_API Aws::String SerializePayload() const override
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(const char *value)
void SetDBClusterIdentifier(const Aws::String &value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector