AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ModifyDBClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/docdb/DocDBRequest.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11#include <aws/docdb/model/CloudwatchLogsExportConfiguration.h>
12#include <aws/docdb/model/ServerlessV2ScalingConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DocDB {
18namespace Model {
19
26 public:
27 AWS_DOCDB_API ModifyDBClusterRequest() = default;
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 "ModifyDBCluster"; }
34
35 AWS_DOCDB_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
47 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
48 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
49 template <typename DBClusterIdentifierT = Aws::String>
50 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
51 m_dBClusterIdentifierHasBeenSet = true;
52 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
53 }
54 template <typename DBClusterIdentifierT = Aws::String>
55 ModifyDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
56 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
57 return *this;
58 }
60
62
70 inline const Aws::String& GetNewDBClusterIdentifier() const { return m_newDBClusterIdentifier; }
71 inline bool NewDBClusterIdentifierHasBeenSet() const { return m_newDBClusterIdentifierHasBeenSet; }
72 template <typename NewDBClusterIdentifierT = Aws::String>
73 void SetNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) {
74 m_newDBClusterIdentifierHasBeenSet = true;
75 m_newDBClusterIdentifier = std::forward<NewDBClusterIdentifierT>(value);
76 }
77 template <typename NewDBClusterIdentifierT = Aws::String>
78 ModifyDBClusterRequest& WithNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) {
79 SetNewDBClusterIdentifier(std::forward<NewDBClusterIdentifierT>(value));
80 return *this;
81 }
83
85
99 inline bool GetApplyImmediately() const { return m_applyImmediately; }
100 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
101 inline void SetApplyImmediately(bool value) {
102 m_applyImmediatelyHasBeenSet = true;
103 m_applyImmediately = value;
104 }
106 SetApplyImmediately(value);
107 return *this;
108 }
110
112
117 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
118 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
119 inline void SetBackupRetentionPeriod(int value) {
120 m_backupRetentionPeriodHasBeenSet = true;
121 m_backupRetentionPeriod = value;
122 }
125 return *this;
126 }
128
130
133 inline const Aws::String& GetDBClusterParameterGroupName() const { return m_dBClusterParameterGroupName; }
134 inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; }
135 template <typename DBClusterParameterGroupNameT = Aws::String>
136 void SetDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) {
137 m_dBClusterParameterGroupNameHasBeenSet = true;
138 m_dBClusterParameterGroupName = std::forward<DBClusterParameterGroupNameT>(value);
139 }
140 template <typename DBClusterParameterGroupNameT = Aws::String>
141 ModifyDBClusterRequest& WithDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) {
142 SetDBClusterParameterGroupName(std::forward<DBClusterParameterGroupNameT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
153 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
154 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
155 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
156 m_vpcSecurityGroupIdsHasBeenSet = true;
157 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
158 }
159 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
160 ModifyDBClusterRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
161 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
162 return *this;
163 }
164 template <typename VpcSecurityGroupIdsT = Aws::String>
165 ModifyDBClusterRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
166 m_vpcSecurityGroupIdsHasBeenSet = true;
167 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
168 return *this;
169 }
171
173
178 inline int GetPort() const { return m_port; }
179 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
180 inline void SetPort(int value) {
181 m_portHasBeenSet = true;
182 m_port = value;
183 }
184 inline ModifyDBClusterRequest& WithPort(int value) {
185 SetPort(value);
186 return *this;
187 }
189
191
196 inline const Aws::String& GetMasterUserPassword() const { return m_masterUserPassword; }
197 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
198 template <typename MasterUserPasswordT = Aws::String>
199 void SetMasterUserPassword(MasterUserPasswordT&& value) {
200 m_masterUserPasswordHasBeenSet = true;
201 m_masterUserPassword = std::forward<MasterUserPasswordT>(value);
202 }
203 template <typename MasterUserPasswordT = Aws::String>
204 ModifyDBClusterRequest& WithMasterUserPassword(MasterUserPasswordT&& value) {
205 SetMasterUserPassword(std::forward<MasterUserPasswordT>(value));
206 return *this;
207 }
209
211
221 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
222 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
223 template <typename PreferredBackupWindowT = Aws::String>
224 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) {
225 m_preferredBackupWindowHasBeenSet = true;
226 m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value);
227 }
228 template <typename PreferredBackupWindowT = Aws::String>
229 ModifyDBClusterRequest& WithPreferredBackupWindow(PreferredBackupWindowT&& value) {
230 SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value));
231 return *this;
232 }
234
236
244 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
245 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
246 template <typename PreferredMaintenanceWindowT = Aws::String>
247 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
248 m_preferredMaintenanceWindowHasBeenSet = true;
249 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
250 }
251 template <typename PreferredMaintenanceWindowT = Aws::String>
252 ModifyDBClusterRequest& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
253 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
254 return *this;
255 }
257
259
266 return m_cloudwatchLogsExportConfiguration;
267 }
268 inline bool CloudwatchLogsExportConfigurationHasBeenSet() const { return m_cloudwatchLogsExportConfigurationHasBeenSet; }
269 template <typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
270 void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) {
271 m_cloudwatchLogsExportConfigurationHasBeenSet = true;
272 m_cloudwatchLogsExportConfiguration = std::forward<CloudwatchLogsExportConfigurationT>(value);
273 }
274 template <typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
275 ModifyDBClusterRequest& WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) {
276 SetCloudwatchLogsExportConfiguration(std::forward<CloudwatchLogsExportConfigurationT>(value));
277 return *this;
278 }
280
282
290 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
291 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
292 template <typename EngineVersionT = Aws::String>
293 void SetEngineVersion(EngineVersionT&& value) {
294 m_engineVersionHasBeenSet = true;
295 m_engineVersion = std::forward<EngineVersionT>(value);
296 }
297 template <typename EngineVersionT = Aws::String>
298 ModifyDBClusterRequest& WithEngineVersion(EngineVersionT&& value) {
299 SetEngineVersion(std::forward<EngineVersionT>(value));
300 return *this;
301 }
303
305
318 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
319 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
320 inline void SetAllowMajorVersionUpgrade(bool value) {
321 m_allowMajorVersionUpgradeHasBeenSet = true;
322 m_allowMajorVersionUpgrade = value;
323 }
326 return *this;
327 }
329
331
338 inline bool GetDeletionProtection() const { return m_deletionProtection; }
339 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
340 inline void SetDeletionProtection(bool value) {
341 m_deletionProtectionHasBeenSet = true;
342 m_deletionProtection = value;
343 }
346 return *this;
347 }
349
351
358 inline const Aws::String& GetStorageType() const { return m_storageType; }
359 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
360 template <typename StorageTypeT = Aws::String>
361 void SetStorageType(StorageTypeT&& value) {
362 m_storageTypeHasBeenSet = true;
363 m_storageType = std::forward<StorageTypeT>(value);
364 }
365 template <typename StorageTypeT = Aws::String>
367 SetStorageType(std::forward<StorageTypeT>(value));
368 return *this;
369 }
371
373
377 inline const ServerlessV2ScalingConfiguration& GetServerlessV2ScalingConfiguration() const { return m_serverlessV2ScalingConfiguration; }
378 inline bool ServerlessV2ScalingConfigurationHasBeenSet() const { return m_serverlessV2ScalingConfigurationHasBeenSet; }
379 template <typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
380 void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) {
381 m_serverlessV2ScalingConfigurationHasBeenSet = true;
382 m_serverlessV2ScalingConfiguration = std::forward<ServerlessV2ScalingConfigurationT>(value);
383 }
384 template <typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
385 ModifyDBClusterRequest& WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) {
386 SetServerlessV2ScalingConfiguration(std::forward<ServerlessV2ScalingConfigurationT>(value));
387 return *this;
388 }
390
392
403 inline bool GetManageMasterUserPassword() const { return m_manageMasterUserPassword; }
404 inline bool ManageMasterUserPasswordHasBeenSet() const { return m_manageMasterUserPasswordHasBeenSet; }
405 inline void SetManageMasterUserPassword(bool value) {
406 m_manageMasterUserPasswordHasBeenSet = true;
407 m_manageMasterUserPassword = value;
408 }
411 return *this;
412 }
414
416
437 inline const Aws::String& GetMasterUserSecretKmsKeyId() const { return m_masterUserSecretKmsKeyId; }
438 inline bool MasterUserSecretKmsKeyIdHasBeenSet() const { return m_masterUserSecretKmsKeyIdHasBeenSet; }
439 template <typename MasterUserSecretKmsKeyIdT = Aws::String>
440 void SetMasterUserSecretKmsKeyId(MasterUserSecretKmsKeyIdT&& value) {
441 m_masterUserSecretKmsKeyIdHasBeenSet = true;
442 m_masterUserSecretKmsKeyId = std::forward<MasterUserSecretKmsKeyIdT>(value);
443 }
444 template <typename MasterUserSecretKmsKeyIdT = Aws::String>
445 ModifyDBClusterRequest& WithMasterUserSecretKmsKeyId(MasterUserSecretKmsKeyIdT&& value) {
446 SetMasterUserSecretKmsKeyId(std::forward<MasterUserSecretKmsKeyIdT>(value));
447 return *this;
448 }
450
452
460 inline bool GetRotateMasterUserPassword() const { return m_rotateMasterUserPassword; }
461 inline bool RotateMasterUserPasswordHasBeenSet() const { return m_rotateMasterUserPasswordHasBeenSet; }
462 inline void SetRotateMasterUserPassword(bool value) {
463 m_rotateMasterUserPasswordHasBeenSet = true;
464 m_rotateMasterUserPassword = value;
465 }
468 return *this;
469 }
471
473
482 inline const Aws::String& GetNetworkType() const { return m_networkType; }
483 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
484 template <typename NetworkTypeT = Aws::String>
485 void SetNetworkType(NetworkTypeT&& value) {
486 m_networkTypeHasBeenSet = true;
487 m_networkType = std::forward<NetworkTypeT>(value);
488 }
489 template <typename NetworkTypeT = Aws::String>
491 SetNetworkType(std::forward<NetworkTypeT>(value));
492 return *this;
493 }
495 private:
496 Aws::String m_dBClusterIdentifier;
497
498 Aws::String m_newDBClusterIdentifier;
499
500 bool m_applyImmediately{false};
501
502 int m_backupRetentionPeriod{0};
503
504 Aws::String m_dBClusterParameterGroupName;
505
506 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
507
508 int m_port{0};
509
510 Aws::String m_masterUserPassword;
511
512 Aws::String m_preferredBackupWindow;
513
514 Aws::String m_preferredMaintenanceWindow;
515
516 CloudwatchLogsExportConfiguration m_cloudwatchLogsExportConfiguration;
517
518 Aws::String m_engineVersion;
519
520 bool m_allowMajorVersionUpgrade{false};
521
522 bool m_deletionProtection{false};
523
524 Aws::String m_storageType;
525
526 ServerlessV2ScalingConfiguration m_serverlessV2ScalingConfiguration;
527
528 bool m_manageMasterUserPassword{false};
529
530 Aws::String m_masterUserSecretKmsKeyId;
531
532 bool m_rotateMasterUserPassword{false};
533
534 Aws::String m_networkType;
535 bool m_dBClusterIdentifierHasBeenSet = false;
536 bool m_newDBClusterIdentifierHasBeenSet = false;
537 bool m_applyImmediatelyHasBeenSet = false;
538 bool m_backupRetentionPeriodHasBeenSet = false;
539 bool m_dBClusterParameterGroupNameHasBeenSet = false;
540 bool m_vpcSecurityGroupIdsHasBeenSet = false;
541 bool m_portHasBeenSet = false;
542 bool m_masterUserPasswordHasBeenSet = false;
543 bool m_preferredBackupWindowHasBeenSet = false;
544 bool m_preferredMaintenanceWindowHasBeenSet = false;
545 bool m_cloudwatchLogsExportConfigurationHasBeenSet = false;
546 bool m_engineVersionHasBeenSet = false;
547 bool m_allowMajorVersionUpgradeHasBeenSet = false;
548 bool m_deletionProtectionHasBeenSet = false;
549 bool m_storageTypeHasBeenSet = false;
550 bool m_serverlessV2ScalingConfigurationHasBeenSet = false;
551 bool m_manageMasterUserPasswordHasBeenSet = false;
552 bool m_masterUserSecretKmsKeyIdHasBeenSet = false;
553 bool m_rotateMasterUserPasswordHasBeenSet = false;
554 bool m_networkTypeHasBeenSet = false;
555};
556
557} // namespace Model
558} // namespace DocDB
559} // 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 & WithNetworkType(NetworkTypeT &&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