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/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptune/model/CloudwatchLogsExportConfiguration.h>
12#include <aws/neptune/model/ServerlessV2ScalingConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Neptune
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_NEPTUNE_API ModifyDBClusterRequest();
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_NEPTUNE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
48 inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
49 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
50 inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
51 inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
52 inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
54 inline ModifyDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
55 inline ModifyDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
57
59
67 inline const Aws::String& GetNewDBClusterIdentifier() const{ return m_newDBClusterIdentifier; }
68 inline bool NewDBClusterIdentifierHasBeenSet() const { return m_newDBClusterIdentifierHasBeenSet; }
69 inline void SetNewDBClusterIdentifier(const Aws::String& value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier = value; }
70 inline void SetNewDBClusterIdentifier(Aws::String&& value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier = std::move(value); }
71 inline void SetNewDBClusterIdentifier(const char* value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier.assign(value); }
74 inline ModifyDBClusterRequest& WithNewDBClusterIdentifier(const char* value) { SetNewDBClusterIdentifier(value); return *this;}
76
78
92 inline bool GetApplyImmediately() const{ return m_applyImmediately; }
93 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
94 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
95 inline ModifyDBClusterRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
97
99
104 inline int GetBackupRetentionPeriod() const{ return m_backupRetentionPeriod; }
105 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
106 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
109
111
114 inline const Aws::String& GetDBClusterParameterGroupName() const{ return m_dBClusterParameterGroupName; }
115 inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; }
116 inline void SetDBClusterParameterGroupName(const Aws::String& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = value; }
117 inline void SetDBClusterParameterGroupName(Aws::String&& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = std::move(value); }
118 inline void SetDBClusterParameterGroupName(const char* value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName.assign(value); }
123
125
128 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
129 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
130 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
131 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
134 inline ModifyDBClusterRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
135 inline ModifyDBClusterRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
136 inline ModifyDBClusterRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
138
140
145 inline int GetPort() const{ return m_port; }
146 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
147 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
148 inline ModifyDBClusterRequest& WithPort(int value) { SetPort(value); return *this;}
150
152
155 inline const Aws::String& GetMasterUserPassword() const{ return m_masterUserPassword; }
156 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
157 inline void SetMasterUserPassword(const Aws::String& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
158 inline void SetMasterUserPassword(Aws::String&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = std::move(value); }
159 inline void SetMasterUserPassword(const char* value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword.assign(value); }
161 inline ModifyDBClusterRequest& WithMasterUserPassword(Aws::String&& value) { SetMasterUserPassword(std::move(value)); return *this;}
162 inline ModifyDBClusterRequest& WithMasterUserPassword(const char* value) { SetMasterUserPassword(value); return *this;}
164
166
169 inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
170 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
171 inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
172 inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
173 inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
174 inline ModifyDBClusterRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
175 inline ModifyDBClusterRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
176 inline ModifyDBClusterRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
178
180
190 inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
191 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
192 inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
193 inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
194 inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
197 inline ModifyDBClusterRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
199
201
209 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
210 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
211 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
212 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
213 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
218
220
225 inline bool GetEnableIAMDatabaseAuthentication() const{ return m_enableIAMDatabaseAuthentication; }
226 inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; }
227 inline void SetEnableIAMDatabaseAuthentication(bool value) { m_enableIAMDatabaseAuthenticationHasBeenSet = true; m_enableIAMDatabaseAuthentication = value; }
230
232
238 inline const CloudwatchLogsExportConfiguration& GetCloudwatchLogsExportConfiguration() const{ return m_cloudwatchLogsExportConfiguration; }
239 inline bool CloudwatchLogsExportConfigurationHasBeenSet() const { return m_cloudwatchLogsExportConfigurationHasBeenSet; }
240 inline void SetCloudwatchLogsExportConfiguration(const CloudwatchLogsExportConfiguration& value) { m_cloudwatchLogsExportConfigurationHasBeenSet = true; m_cloudwatchLogsExportConfiguration = value; }
241 inline void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfiguration&& value) { m_cloudwatchLogsExportConfigurationHasBeenSet = true; m_cloudwatchLogsExportConfiguration = std::move(value); }
245
247
255 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
256 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
257 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
258 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
259 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
260 inline ModifyDBClusterRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
261 inline ModifyDBClusterRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
262 inline ModifyDBClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
264
266
272 inline bool GetAllowMajorVersionUpgrade() const{ return m_allowMajorVersionUpgrade; }
273 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
274 inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
277
279
290 inline const Aws::String& GetDBInstanceParameterGroupName() const{ return m_dBInstanceParameterGroupName; }
291 inline bool DBInstanceParameterGroupNameHasBeenSet() const { return m_dBInstanceParameterGroupNameHasBeenSet; }
292 inline void SetDBInstanceParameterGroupName(const Aws::String& value) { m_dBInstanceParameterGroupNameHasBeenSet = true; m_dBInstanceParameterGroupName = value; }
293 inline void SetDBInstanceParameterGroupName(Aws::String&& value) { m_dBInstanceParameterGroupNameHasBeenSet = true; m_dBInstanceParameterGroupName = std::move(value); }
294 inline void SetDBInstanceParameterGroupName(const char* value) { m_dBInstanceParameterGroupNameHasBeenSet = true; m_dBInstanceParameterGroupName.assign(value); }
299
301
306 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
307 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
308 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
309 inline ModifyDBClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
311
313
317 inline bool GetCopyTagsToSnapshot() const{ return m_copyTagsToSnapshot; }
318 inline bool CopyTagsToSnapshotHasBeenSet() const { return m_copyTagsToSnapshotHasBeenSet; }
319 inline void SetCopyTagsToSnapshot(bool value) { m_copyTagsToSnapshotHasBeenSet = true; m_copyTagsToSnapshot = value; }
320 inline ModifyDBClusterRequest& WithCopyTagsToSnapshot(bool value) { SetCopyTagsToSnapshot(value); return *this;}
322
324
330 inline const ServerlessV2ScalingConfiguration& GetServerlessV2ScalingConfiguration() const{ return m_serverlessV2ScalingConfiguration; }
331 inline bool ServerlessV2ScalingConfigurationHasBeenSet() const { return m_serverlessV2ScalingConfigurationHasBeenSet; }
332 inline void SetServerlessV2ScalingConfiguration(const ServerlessV2ScalingConfiguration& value) { m_serverlessV2ScalingConfigurationHasBeenSet = true; m_serverlessV2ScalingConfiguration = value; }
333 inline void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration&& value) { m_serverlessV2ScalingConfigurationHasBeenSet = true; m_serverlessV2ScalingConfiguration = std::move(value); }
337
339
344 inline const Aws::String& GetStorageType() const{ return m_storageType; }
345 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
346 inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
347 inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
348 inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
349 inline ModifyDBClusterRequest& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
350 inline ModifyDBClusterRequest& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;}
351 inline ModifyDBClusterRequest& WithStorageType(const char* value) { SetStorageType(value); return *this;}
353 private:
354
355 Aws::String m_dBClusterIdentifier;
356 bool m_dBClusterIdentifierHasBeenSet = false;
357
358 Aws::String m_newDBClusterIdentifier;
359 bool m_newDBClusterIdentifierHasBeenSet = false;
360
361 bool m_applyImmediately;
362 bool m_applyImmediatelyHasBeenSet = false;
363
364 int m_backupRetentionPeriod;
365 bool m_backupRetentionPeriodHasBeenSet = false;
366
367 Aws::String m_dBClusterParameterGroupName;
368 bool m_dBClusterParameterGroupNameHasBeenSet = false;
369
370 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
371 bool m_vpcSecurityGroupIdsHasBeenSet = false;
372
373 int m_port;
374 bool m_portHasBeenSet = false;
375
376 Aws::String m_masterUserPassword;
377 bool m_masterUserPasswordHasBeenSet = false;
378
379 Aws::String m_optionGroupName;
380 bool m_optionGroupNameHasBeenSet = false;
381
382 Aws::String m_preferredBackupWindow;
383 bool m_preferredBackupWindowHasBeenSet = false;
384
385 Aws::String m_preferredMaintenanceWindow;
386 bool m_preferredMaintenanceWindowHasBeenSet = false;
387
388 bool m_enableIAMDatabaseAuthentication;
389 bool m_enableIAMDatabaseAuthenticationHasBeenSet = false;
390
391 CloudwatchLogsExportConfiguration m_cloudwatchLogsExportConfiguration;
392 bool m_cloudwatchLogsExportConfigurationHasBeenSet = false;
393
394 Aws::String m_engineVersion;
395 bool m_engineVersionHasBeenSet = false;
396
397 bool m_allowMajorVersionUpgrade;
398 bool m_allowMajorVersionUpgradeHasBeenSet = false;
399
400 Aws::String m_dBInstanceParameterGroupName;
401 bool m_dBInstanceParameterGroupNameHasBeenSet = false;
402
403 bool m_deletionProtection;
404 bool m_deletionProtectionHasBeenSet = false;
405
406 bool m_copyTagsToSnapshot;
407 bool m_copyTagsToSnapshotHasBeenSet = false;
408
409 ServerlessV2ScalingConfiguration m_serverlessV2ScalingConfiguration;
410 bool m_serverlessV2ScalingConfigurationHasBeenSet = false;
411
412 Aws::String m_storageType;
413 bool m_storageTypeHasBeenSet = false;
414 };
415
416} // namespace Model
417} // namespace Neptune
418} // namespace Aws
ModifyDBClusterRequest & WithEnableIAMDatabaseAuthentication(bool value)
ModifyDBClusterRequest & WithDeletionProtection(bool value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
void SetServerlessV2ScalingConfiguration(const ServerlessV2ScalingConfiguration &value)
void SetPreferredBackupWindow(const Aws::String &value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(const char *value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(const Aws::String &value)
ModifyDBClusterRequest & WithPort(int value)
void SetDBClusterIdentifier(const Aws::String &value)
void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration &&value)
ModifyDBClusterRequest & WithMasterUserPassword(const char *value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(Aws::String &&value)
ModifyDBClusterRequest & WithAllowMajorVersionUpgrade(bool value)
ModifyDBClusterRequest & WithPreferredBackupWindow(Aws::String &&value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyDBClusterRequest & WithServerlessV2ScalingConfiguration(const ServerlessV2ScalingConfiguration &value)
ModifyDBClusterRequest & WithEngineVersion(const Aws::String &value)
void SetCloudwatchLogsExportConfiguration(const CloudwatchLogsExportConfiguration &value)
ModifyDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
ModifyDBClusterRequest & WithStorageType(const char *value)
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
ModifyDBClusterRequest & WithEngineVersion(Aws::String &&value)
const Aws::String & GetDBClusterParameterGroupName() const
ModifyDBClusterRequest & WithCopyTagsToSnapshot(bool value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
ModifyDBClusterRequest & AddVpcSecurityGroupIds(Aws::String &&value)
void SetDBInstanceParameterGroupName(const Aws::String &value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(Aws::String &&value)
ModifyDBClusterRequest & WithOptionGroupName(const char *value)
ModifyDBClusterRequest & WithMasterUserPassword(Aws::String &&value)
ModifyDBClusterRequest & WithDBClusterIdentifier(const char *value)
ModifyDBClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
const Aws::String & GetPreferredMaintenanceWindow() const
ModifyDBClusterRequest & WithPreferredBackupWindow(const char *value)
ModifyDBClusterRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyDBClusterRequest & WithApplyImmediately(bool value)
void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfiguration &&value)
void SetNewDBClusterIdentifier(const Aws::String &value)
ModifyDBClusterRequest & AddVpcSecurityGroupIds(const Aws::String &value)
ModifyDBClusterRequest & WithOptionGroupName(const Aws::String &value)
ModifyDBClusterRequest & WithDBInstanceParameterGroupName(Aws::String &&value)
ModifyDBClusterRequest & AddVpcSecurityGroupIds(const char *value)
ModifyDBClusterRequest & WithDBInstanceParameterGroupName(const char *value)
ModifyDBClusterRequest & WithStorageType(const Aws::String &value)
ModifyDBClusterRequest & WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration &&value)
ModifyDBClusterRequest & WithBackupRetentionPeriod(int value)
ModifyDBClusterRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyDBClusterRequest & WithStorageType(Aws::String &&value)
ModifyDBClusterRequest & WithCloudwatchLogsExportConfiguration(const CloudwatchLogsExportConfiguration &value)
ModifyDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
ModifyDBClusterRequest & WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfiguration &&value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(const Aws::String &value)
ModifyDBClusterRequest & WithDBClusterParameterGroupName(const char *value)
const CloudwatchLogsExportConfiguration & GetCloudwatchLogsExportConfiguration() const
void SetMasterUserPassword(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ModifyDBClusterRequest & WithDBInstanceParameterGroupName(const Aws::String &value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDBClusterRequest & WithEngineVersion(const char *value)
const ServerlessV2ScalingConfiguration & GetServerlessV2ScalingConfiguration() const
ModifyDBClusterRequest & WithPreferredBackupWindow(const Aws::String &value)
void SetDBClusterParameterGroupName(const Aws::String &value)
const Aws::String & GetDBInstanceParameterGroupName() const
ModifyDBClusterRequest & WithMasterUserPassword(const Aws::String &value)
ModifyDBClusterRequest & WithNewDBClusterIdentifier(const char *value)
ModifyDBClusterRequest & WithOptionGroupName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector