AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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 <aws/docdb/model/ServerlessV2ScalingConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DocDB
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_DOCDB_API ModifyDBClusterRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ModifyDBCluster"; }
37
38 AWS_DOCDB_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
51 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
52 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
53 template<typename DBClusterIdentifierT = Aws::String>
54 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
55 template<typename DBClusterIdentifierT = Aws::String>
56 ModifyDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
58
60
68 inline const Aws::String& GetNewDBClusterIdentifier() const { return m_newDBClusterIdentifier; }
69 inline bool NewDBClusterIdentifierHasBeenSet() const { return m_newDBClusterIdentifierHasBeenSet; }
70 template<typename NewDBClusterIdentifierT = Aws::String>
71 void SetNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier = std::forward<NewDBClusterIdentifierT>(value); }
72 template<typename NewDBClusterIdentifierT = Aws::String>
73 ModifyDBClusterRequest& WithNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) { SetNewDBClusterIdentifier(std::forward<NewDBClusterIdentifierT>(value)); return *this;}
75
77
91 inline bool GetApplyImmediately() const { return m_applyImmediately; }
92 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
93 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
94 inline ModifyDBClusterRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
96
98
103 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
104 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
105 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
108
110
113 inline const Aws::String& GetDBClusterParameterGroupName() const { return m_dBClusterParameterGroupName; }
114 inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; }
115 template<typename DBClusterParameterGroupNameT = Aws::String>
116 void SetDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = std::forward<DBClusterParameterGroupNameT>(value); }
117 template<typename DBClusterParameterGroupNameT = Aws::String>
118 ModifyDBClusterRequest& WithDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) { SetDBClusterParameterGroupName(std::forward<DBClusterParameterGroupNameT>(value)); return *this;}
120
122
126 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
127 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
128 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
129 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
130 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
131 ModifyDBClusterRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
132 template<typename VpcSecurityGroupIdsT = Aws::String>
133 ModifyDBClusterRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
135
137
142 inline int GetPort() const { return m_port; }
143 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
144 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
145 inline ModifyDBClusterRequest& WithPort(int value) { SetPort(value); return *this;}
147
149
154 inline const Aws::String& GetMasterUserPassword() const { return m_masterUserPassword; }
155 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
156 template<typename MasterUserPasswordT = Aws::String>
157 void SetMasterUserPassword(MasterUserPasswordT&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = std::forward<MasterUserPasswordT>(value); }
158 template<typename MasterUserPasswordT = Aws::String>
159 ModifyDBClusterRequest& WithMasterUserPassword(MasterUserPasswordT&& value) { SetMasterUserPassword(std::forward<MasterUserPasswordT>(value)); return *this;}
161
163
173 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
174 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
175 template<typename PreferredBackupWindowT = Aws::String>
176 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value); }
177 template<typename PreferredBackupWindowT = Aws::String>
178 ModifyDBClusterRequest& WithPreferredBackupWindow(PreferredBackupWindowT&& value) { SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value)); return *this;}
180
182
190 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
191 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
192 template<typename PreferredMaintenanceWindowT = Aws::String>
193 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
194 template<typename PreferredMaintenanceWindowT = Aws::String>
195 ModifyDBClusterRequest& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value)); return *this;}
197
199
205 inline const CloudwatchLogsExportConfiguration& GetCloudwatchLogsExportConfiguration() const { return m_cloudwatchLogsExportConfiguration; }
206 inline bool CloudwatchLogsExportConfigurationHasBeenSet() const { return m_cloudwatchLogsExportConfigurationHasBeenSet; }
207 template<typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
208 void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) { m_cloudwatchLogsExportConfigurationHasBeenSet = true; m_cloudwatchLogsExportConfiguration = std::forward<CloudwatchLogsExportConfigurationT>(value); }
209 template<typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
210 ModifyDBClusterRequest& WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) { SetCloudwatchLogsExportConfiguration(std::forward<CloudwatchLogsExportConfigurationT>(value)); return *this;}
212
214
222 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
223 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
224 template<typename EngineVersionT = Aws::String>
225 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
226 template<typename EngineVersionT = Aws::String>
227 ModifyDBClusterRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
229
231
237 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
238 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
239 inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
242
244
251 inline bool GetDeletionProtection() const { return m_deletionProtection; }
252 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
253 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
254 inline ModifyDBClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
256
258
265 inline const Aws::String& GetStorageType() const { return m_storageType; }
266 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
267 template<typename StorageTypeT = Aws::String>
268 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
269 template<typename StorageTypeT = Aws::String>
270 ModifyDBClusterRequest& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
272
274
278 inline const ServerlessV2ScalingConfiguration& GetServerlessV2ScalingConfiguration() const { return m_serverlessV2ScalingConfiguration; }
279 inline bool ServerlessV2ScalingConfigurationHasBeenSet() const { return m_serverlessV2ScalingConfigurationHasBeenSet; }
280 template<typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
281 void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) { m_serverlessV2ScalingConfigurationHasBeenSet = true; m_serverlessV2ScalingConfiguration = std::forward<ServerlessV2ScalingConfigurationT>(value); }
282 template<typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
283 ModifyDBClusterRequest& WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) { SetServerlessV2ScalingConfiguration(std::forward<ServerlessV2ScalingConfigurationT>(value)); return *this;}
285
287
298 inline bool GetManageMasterUserPassword() const { return m_manageMasterUserPassword; }
299 inline bool ManageMasterUserPasswordHasBeenSet() const { return m_manageMasterUserPasswordHasBeenSet; }
300 inline void SetManageMasterUserPassword(bool value) { m_manageMasterUserPasswordHasBeenSet = true; m_manageMasterUserPassword = value; }
303
305
326 inline const Aws::String& GetMasterUserSecretKmsKeyId() const { return m_masterUserSecretKmsKeyId; }
327 inline bool MasterUserSecretKmsKeyIdHasBeenSet() const { return m_masterUserSecretKmsKeyIdHasBeenSet; }
328 template<typename MasterUserSecretKmsKeyIdT = Aws::String>
329 void SetMasterUserSecretKmsKeyId(MasterUserSecretKmsKeyIdT&& value) { m_masterUserSecretKmsKeyIdHasBeenSet = true; m_masterUserSecretKmsKeyId = std::forward<MasterUserSecretKmsKeyIdT>(value); }
330 template<typename MasterUserSecretKmsKeyIdT = Aws::String>
331 ModifyDBClusterRequest& WithMasterUserSecretKmsKeyId(MasterUserSecretKmsKeyIdT&& value) { SetMasterUserSecretKmsKeyId(std::forward<MasterUserSecretKmsKeyIdT>(value)); return *this;}
333
335
343 inline bool GetRotateMasterUserPassword() const { return m_rotateMasterUserPassword; }
344 inline bool RotateMasterUserPasswordHasBeenSet() const { return m_rotateMasterUserPasswordHasBeenSet; }
345 inline void SetRotateMasterUserPassword(bool value) { m_rotateMasterUserPasswordHasBeenSet = true; m_rotateMasterUserPassword = value; }
348 private:
349
350 Aws::String m_dBClusterIdentifier;
351 bool m_dBClusterIdentifierHasBeenSet = false;
352
353 Aws::String m_newDBClusterIdentifier;
354 bool m_newDBClusterIdentifierHasBeenSet = false;
355
356 bool m_applyImmediately{false};
357 bool m_applyImmediatelyHasBeenSet = false;
358
359 int m_backupRetentionPeriod{0};
360 bool m_backupRetentionPeriodHasBeenSet = false;
361
362 Aws::String m_dBClusterParameterGroupName;
363 bool m_dBClusterParameterGroupNameHasBeenSet = false;
364
365 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
366 bool m_vpcSecurityGroupIdsHasBeenSet = false;
367
368 int m_port{0};
369 bool m_portHasBeenSet = false;
370
371 Aws::String m_masterUserPassword;
372 bool m_masterUserPasswordHasBeenSet = false;
373
374 Aws::String m_preferredBackupWindow;
375 bool m_preferredBackupWindowHasBeenSet = false;
376
377 Aws::String m_preferredMaintenanceWindow;
378 bool m_preferredMaintenanceWindowHasBeenSet = false;
379
380 CloudwatchLogsExportConfiguration m_cloudwatchLogsExportConfiguration;
381 bool m_cloudwatchLogsExportConfigurationHasBeenSet = false;
382
383 Aws::String m_engineVersion;
384 bool m_engineVersionHasBeenSet = false;
385
386 bool m_allowMajorVersionUpgrade{false};
387 bool m_allowMajorVersionUpgradeHasBeenSet = false;
388
389 bool m_deletionProtection{false};
390 bool m_deletionProtectionHasBeenSet = false;
391
392 Aws::String m_storageType;
393 bool m_storageTypeHasBeenSet = false;
394
395 ServerlessV2ScalingConfiguration m_serverlessV2ScalingConfiguration;
396 bool m_serverlessV2ScalingConfigurationHasBeenSet = false;
397
398 bool m_manageMasterUserPassword{false};
399 bool m_manageMasterUserPasswordHasBeenSet = false;
400
401 Aws::String m_masterUserSecretKmsKeyId;
402 bool m_masterUserSecretKmsKeyIdHasBeenSet = false;
403
404 bool m_rotateMasterUserPassword{false};
405 bool m_rotateMasterUserPasswordHasBeenSet = false;
406 };
407
408} // namespace Model
409} // namespace DocDB
410} // namespace Aws
ModifyDBClusterRequest & WithDBClusterParameterGroupName(DBClusterParameterGroupNameT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDBClusterRequest & WithApplyImmediately(bool value)
ModifyDBClusterRequest & WithMasterUserSecretKmsKeyId(MasterUserSecretKmsKeyIdT &&value)
void SetDBClusterParameterGroupName(DBClusterParameterGroupNameT &&value)
const ServerlessV2ScalingConfiguration & GetServerlessV2ScalingConfiguration() const
AWS_DOCDB_API ModifyDBClusterRequest()=default
void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT &&value)
void SetMasterUserSecretKmsKeyId(MasterUserSecretKmsKeyIdT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ModifyDBClusterRequest & WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT &&value)
ModifyDBClusterRequest & WithDeletionProtection(bool value)
ModifyDBClusterRequest & WithStorageType(StorageTypeT &&value)
ModifyDBClusterRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
ModifyDBClusterRequest & WithManageMasterUserPassword(bool value)
ModifyDBClusterRequest & WithRotateMasterUserPassword(bool value)
ModifyDBClusterRequest & WithPort(int value)
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDBClusterParameterGroupName() const
const CloudwatchLogsExportConfiguration & GetCloudwatchLogsExportConfiguration() const
ModifyDBClusterRequest & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
const Aws::String & GetNewDBClusterIdentifier() const
void SetMasterUserPassword(MasterUserPasswordT &&value)
ModifyDBClusterRequest & WithEngineVersion(EngineVersionT &&value)
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
const Aws::String & GetPreferredMaintenanceWindow() const
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(NewDBClusterIdentifierT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::String & GetMasterUserSecretKmsKeyId() const
void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT &&value)
ModifyDBClusterRequest & WithMasterUserPassword(MasterUserPasswordT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
ModifyDBClusterRequest & WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT &&value)
ModifyDBClusterRequest & WithBackupRetentionPeriod(int value)
ModifyDBClusterRequest & WithAllowMajorVersionUpgrade(bool value)
void SetNewDBClusterIdentifier(NewDBClusterIdentifierT &&value)
ModifyDBClusterRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
ModifyDBClusterRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector