AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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/neptune/NeptuneRequest.h>
10#include <aws/neptune/Neptune_EXPORTS.h>
11#include <aws/neptune/model/CloudwatchLogsExportConfiguration.h>
12#include <aws/neptune/model/ServerlessV2ScalingConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Neptune {
18namespace Model {
19
23 public:
24 AWS_NEPTUNE_API ModifyDBClusterRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ModifyDBCluster"; }
31
32 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
44 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
45 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
46 template <typename DBClusterIdentifierT = Aws::String>
47 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
48 m_dBClusterIdentifierHasBeenSet = true;
49 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
50 }
51 template <typename DBClusterIdentifierT = Aws::String>
52 ModifyDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
53 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::String& GetNewDBClusterIdentifier() const { return m_newDBClusterIdentifier; }
68 inline bool NewDBClusterIdentifierHasBeenSet() const { return m_newDBClusterIdentifierHasBeenSet; }
69 template <typename NewDBClusterIdentifierT = Aws::String>
70 void SetNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) {
71 m_newDBClusterIdentifierHasBeenSet = true;
72 m_newDBClusterIdentifier = std::forward<NewDBClusterIdentifierT>(value);
73 }
74 template <typename NewDBClusterIdentifierT = Aws::String>
75 ModifyDBClusterRequest& WithNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) {
76 SetNewDBClusterIdentifier(std::forward<NewDBClusterIdentifierT>(value));
77 return *this;
78 }
80
82
96 inline bool GetApplyImmediately() const { return m_applyImmediately; }
97 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
98 inline void SetApplyImmediately(bool value) {
99 m_applyImmediatelyHasBeenSet = true;
100 m_applyImmediately = value;
101 }
103 SetApplyImmediately(value);
104 return *this;
105 }
107
109
114 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
115 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
116 inline void SetBackupRetentionPeriod(int value) {
117 m_backupRetentionPeriodHasBeenSet = true;
118 m_backupRetentionPeriod = value;
119 }
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDBClusterParameterGroupName() const { return m_dBClusterParameterGroupName; }
131 inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; }
132 template <typename DBClusterParameterGroupNameT = Aws::String>
133 void SetDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) {
134 m_dBClusterParameterGroupNameHasBeenSet = true;
135 m_dBClusterParameterGroupName = std::forward<DBClusterParameterGroupNameT>(value);
136 }
137 template <typename DBClusterParameterGroupNameT = Aws::String>
138 ModifyDBClusterRequest& WithDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) {
139 SetDBClusterParameterGroupName(std::forward<DBClusterParameterGroupNameT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
149 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
150 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
151 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
152 m_vpcSecurityGroupIdsHasBeenSet = true;
153 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
154 }
155 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
156 ModifyDBClusterRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
157 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
158 return *this;
159 }
160 template <typename VpcSecurityGroupIdsT = Aws::String>
161 ModifyDBClusterRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
162 m_vpcSecurityGroupIdsHasBeenSet = true;
163 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
164 return *this;
165 }
167
169
174 inline int GetPort() const { return m_port; }
175 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
176 inline void SetPort(int value) {
177 m_portHasBeenSet = true;
178 m_port = value;
179 }
180 inline ModifyDBClusterRequest& WithPort(int value) {
181 SetPort(value);
182 return *this;
183 }
185
187
190 inline const Aws::String& GetMasterUserPassword() const { return m_masterUserPassword; }
191 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
192 template <typename MasterUserPasswordT = Aws::String>
193 void SetMasterUserPassword(MasterUserPasswordT&& value) {
194 m_masterUserPasswordHasBeenSet = true;
195 m_masterUserPassword = std::forward<MasterUserPasswordT>(value);
196 }
197 template <typename MasterUserPasswordT = Aws::String>
198 ModifyDBClusterRequest& WithMasterUserPassword(MasterUserPasswordT&& value) {
199 SetMasterUserPassword(std::forward<MasterUserPasswordT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
209 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
210 template <typename OptionGroupNameT = Aws::String>
211 void SetOptionGroupName(OptionGroupNameT&& value) {
212 m_optionGroupNameHasBeenSet = true;
213 m_optionGroupName = std::forward<OptionGroupNameT>(value);
214 }
215 template <typename OptionGroupNameT = Aws::String>
216 ModifyDBClusterRequest& WithOptionGroupName(OptionGroupNameT&& value) {
217 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
218 return *this;
219 }
221
223
233 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
234 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
235 template <typename PreferredBackupWindowT = Aws::String>
236 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) {
237 m_preferredBackupWindowHasBeenSet = true;
238 m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value);
239 }
240 template <typename PreferredBackupWindowT = Aws::String>
241 ModifyDBClusterRequest& WithPreferredBackupWindow(PreferredBackupWindowT&& value) {
242 SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value));
243 return *this;
244 }
246
248
256 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
257 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
258 template <typename PreferredMaintenanceWindowT = Aws::String>
259 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
260 m_preferredMaintenanceWindowHasBeenSet = true;
261 m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value);
262 }
263 template <typename PreferredMaintenanceWindowT = Aws::String>
264 ModifyDBClusterRequest& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) {
265 SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value));
266 return *this;
267 }
269
271
276 inline bool GetEnableIAMDatabaseAuthentication() const { return m_enableIAMDatabaseAuthentication; }
277 inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; }
278 inline void SetEnableIAMDatabaseAuthentication(bool value) {
279 m_enableIAMDatabaseAuthenticationHasBeenSet = true;
280 m_enableIAMDatabaseAuthentication = value;
281 }
284 return *this;
285 }
287
289
296 return m_cloudwatchLogsExportConfiguration;
297 }
298 inline bool CloudwatchLogsExportConfigurationHasBeenSet() const { return m_cloudwatchLogsExportConfigurationHasBeenSet; }
299 template <typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
300 void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) {
301 m_cloudwatchLogsExportConfigurationHasBeenSet = true;
302 m_cloudwatchLogsExportConfiguration = std::forward<CloudwatchLogsExportConfigurationT>(value);
303 }
304 template <typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
305 ModifyDBClusterRequest& WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) {
306 SetCloudwatchLogsExportConfiguration(std::forward<CloudwatchLogsExportConfigurationT>(value));
307 return *this;
308 }
310
312
320 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
321 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
322 template <typename EngineVersionT = Aws::String>
323 void SetEngineVersion(EngineVersionT&& value) {
324 m_engineVersionHasBeenSet = true;
325 m_engineVersion = std::forward<EngineVersionT>(value);
326 }
327 template <typename EngineVersionT = Aws::String>
328 ModifyDBClusterRequest& WithEngineVersion(EngineVersionT&& value) {
329 SetEngineVersion(std::forward<EngineVersionT>(value));
330 return *this;
331 }
333
335
341 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
342 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
343 inline void SetAllowMajorVersionUpgrade(bool value) {
344 m_allowMajorVersionUpgradeHasBeenSet = true;
345 m_allowMajorVersionUpgrade = value;
346 }
349 return *this;
350 }
352
354
365 inline const Aws::String& GetDBInstanceParameterGroupName() const { return m_dBInstanceParameterGroupName; }
366 inline bool DBInstanceParameterGroupNameHasBeenSet() const { return m_dBInstanceParameterGroupNameHasBeenSet; }
367 template <typename DBInstanceParameterGroupNameT = Aws::String>
368 void SetDBInstanceParameterGroupName(DBInstanceParameterGroupNameT&& value) {
369 m_dBInstanceParameterGroupNameHasBeenSet = true;
370 m_dBInstanceParameterGroupName = std::forward<DBInstanceParameterGroupNameT>(value);
371 }
372 template <typename DBInstanceParameterGroupNameT = Aws::String>
373 ModifyDBClusterRequest& WithDBInstanceParameterGroupName(DBInstanceParameterGroupNameT&& value) {
374 SetDBInstanceParameterGroupName(std::forward<DBInstanceParameterGroupNameT>(value));
375 return *this;
376 }
378
380
385 inline bool GetDeletionProtection() const { return m_deletionProtection; }
386 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
387 inline void SetDeletionProtection(bool value) {
388 m_deletionProtectionHasBeenSet = true;
389 m_deletionProtection = value;
390 }
393 return *this;
394 }
396
398
402 inline bool GetCopyTagsToSnapshot() const { return m_copyTagsToSnapshot; }
403 inline bool CopyTagsToSnapshotHasBeenSet() const { return m_copyTagsToSnapshotHasBeenSet; }
404 inline void SetCopyTagsToSnapshot(bool value) {
405 m_copyTagsToSnapshotHasBeenSet = true;
406 m_copyTagsToSnapshot = value;
407 }
410 return *this;
411 }
413
415
421 inline const ServerlessV2ScalingConfiguration& GetServerlessV2ScalingConfiguration() const { return m_serverlessV2ScalingConfiguration; }
422 inline bool ServerlessV2ScalingConfigurationHasBeenSet() const { return m_serverlessV2ScalingConfigurationHasBeenSet; }
423 template <typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
424 void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) {
425 m_serverlessV2ScalingConfigurationHasBeenSet = true;
426 m_serverlessV2ScalingConfiguration = std::forward<ServerlessV2ScalingConfigurationT>(value);
427 }
428 template <typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
429 ModifyDBClusterRequest& WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) {
430 SetServerlessV2ScalingConfiguration(std::forward<ServerlessV2ScalingConfigurationT>(value));
431 return *this;
432 }
434
436
447 inline const Aws::String& GetStorageType() const { return m_storageType; }
448 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
449 template <typename StorageTypeT = Aws::String>
450 void SetStorageType(StorageTypeT&& value) {
451 m_storageTypeHasBeenSet = true;
452 m_storageType = std::forward<StorageTypeT>(value);
453 }
454 template <typename StorageTypeT = Aws::String>
456 SetStorageType(std::forward<StorageTypeT>(value));
457 return *this;
458 }
460 private:
461 Aws::String m_dBClusterIdentifier;
462 bool m_dBClusterIdentifierHasBeenSet = false;
463
464 Aws::String m_newDBClusterIdentifier;
465 bool m_newDBClusterIdentifierHasBeenSet = false;
466
467 bool m_applyImmediately{false};
468 bool m_applyImmediatelyHasBeenSet = false;
469
470 int m_backupRetentionPeriod{0};
471 bool m_backupRetentionPeriodHasBeenSet = false;
472
473 Aws::String m_dBClusterParameterGroupName;
474 bool m_dBClusterParameterGroupNameHasBeenSet = false;
475
476 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
477 bool m_vpcSecurityGroupIdsHasBeenSet = false;
478
479 int m_port{0};
480 bool m_portHasBeenSet = false;
481
482 Aws::String m_masterUserPassword;
483 bool m_masterUserPasswordHasBeenSet = false;
484
485 Aws::String m_optionGroupName;
486 bool m_optionGroupNameHasBeenSet = false;
487
488 Aws::String m_preferredBackupWindow;
489 bool m_preferredBackupWindowHasBeenSet = false;
490
491 Aws::String m_preferredMaintenanceWindow;
492 bool m_preferredMaintenanceWindowHasBeenSet = false;
493
494 bool m_enableIAMDatabaseAuthentication{false};
495 bool m_enableIAMDatabaseAuthenticationHasBeenSet = false;
496
497 CloudwatchLogsExportConfiguration m_cloudwatchLogsExportConfiguration;
498 bool m_cloudwatchLogsExportConfigurationHasBeenSet = false;
499
500 Aws::String m_engineVersion;
501 bool m_engineVersionHasBeenSet = false;
502
503 bool m_allowMajorVersionUpgrade{false};
504 bool m_allowMajorVersionUpgradeHasBeenSet = false;
505
506 Aws::String m_dBInstanceParameterGroupName;
507 bool m_dBInstanceParameterGroupNameHasBeenSet = false;
508
509 bool m_deletionProtection{false};
510 bool m_deletionProtectionHasBeenSet = false;
511
512 bool m_copyTagsToSnapshot{false};
513 bool m_copyTagsToSnapshotHasBeenSet = false;
514
515 ServerlessV2ScalingConfiguration m_serverlessV2ScalingConfiguration;
516 bool m_serverlessV2ScalingConfigurationHasBeenSet = false;
517
518 Aws::String m_storageType;
519 bool m_storageTypeHasBeenSet = false;
520};
521
522} // namespace Model
523} // namespace Neptune
524} // namespace Aws
ModifyDBClusterRequest & WithEnableIAMDatabaseAuthentication(bool value)
ModifyDBClusterRequest & WithDeletionProtection(bool value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ModifyDBClusterRequest & WithDBInstanceParameterGroupName(DBInstanceParameterGroupNameT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT &&value)
ModifyDBClusterRequest & WithPort(int value)
ModifyDBClusterRequest & WithAllowMajorVersionUpgrade(bool value)
ModifyDBClusterRequest & WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT &&value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(NewDBClusterIdentifierT &&value)
ModifyDBClusterRequest & WithStorageType(StorageTypeT &&value)
void SetDBClusterParameterGroupName(DBClusterParameterGroupNameT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
const Aws::String & GetDBClusterParameterGroupName() const
ModifyDBClusterRequest & WithCopyTagsToSnapshot(bool value)
void SetNewDBClusterIdentifier(NewDBClusterIdentifierT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
void SetMasterUserPassword(MasterUserPasswordT &&value)
ModifyDBClusterRequest & WithOptionGroupName(OptionGroupNameT &&value)
void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT &&value)
ModifyDBClusterRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
const Aws::String & GetPreferredMaintenanceWindow() const
ModifyDBClusterRequest & WithApplyImmediately(bool value)
void SetDBInstanceParameterGroupName(DBInstanceParameterGroupNameT &&value)
ModifyDBClusterRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(DBClusterParameterGroupNameT &&value)
ModifyDBClusterRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
ModifyDBClusterRequest & WithBackupRetentionPeriod(int value)
ModifyDBClusterRequest & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
const CloudwatchLogsExportConfiguration & GetCloudwatchLogsExportConfiguration() const
ModifyDBClusterRequest & WithEngineVersion(EngineVersionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const ServerlessV2ScalingConfiguration & GetServerlessV2ScalingConfiguration() const
const Aws::String & GetDBInstanceParameterGroupName() const
ModifyDBClusterRequest & WithMasterUserPassword(MasterUserPasswordT &&value)
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
AWS_NEPTUNE_API ModifyDBClusterRequest()=default
ModifyDBClusterRequest & WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector