AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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_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 template<typename DBClusterIdentifierT = Aws::String>
51 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
52 template<typename DBClusterIdentifierT = Aws::String>
53 ModifyDBClusterRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
55
57
65 inline const Aws::String& GetNewDBClusterIdentifier() const { return m_newDBClusterIdentifier; }
66 inline bool NewDBClusterIdentifierHasBeenSet() const { return m_newDBClusterIdentifierHasBeenSet; }
67 template<typename NewDBClusterIdentifierT = Aws::String>
68 void SetNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) { m_newDBClusterIdentifierHasBeenSet = true; m_newDBClusterIdentifier = std::forward<NewDBClusterIdentifierT>(value); }
69 template<typename NewDBClusterIdentifierT = Aws::String>
70 ModifyDBClusterRequest& WithNewDBClusterIdentifier(NewDBClusterIdentifierT&& value) { SetNewDBClusterIdentifier(std::forward<NewDBClusterIdentifierT>(value)); return *this;}
72
74
88 inline bool GetApplyImmediately() const { return m_applyImmediately; }
89 inline bool ApplyImmediatelyHasBeenSet() const { return m_applyImmediatelyHasBeenSet; }
90 inline void SetApplyImmediately(bool value) { m_applyImmediatelyHasBeenSet = true; m_applyImmediately = value; }
91 inline ModifyDBClusterRequest& WithApplyImmediately(bool value) { SetApplyImmediately(value); return *this;}
93
95
100 inline int GetBackupRetentionPeriod() const { return m_backupRetentionPeriod; }
101 inline bool BackupRetentionPeriodHasBeenSet() const { return m_backupRetentionPeriodHasBeenSet; }
102 inline void SetBackupRetentionPeriod(int value) { m_backupRetentionPeriodHasBeenSet = true; m_backupRetentionPeriod = value; }
105
107
110 inline const Aws::String& GetDBClusterParameterGroupName() const { return m_dBClusterParameterGroupName; }
111 inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; }
112 template<typename DBClusterParameterGroupNameT = Aws::String>
113 void SetDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = std::forward<DBClusterParameterGroupNameT>(value); }
114 template<typename DBClusterParameterGroupNameT = Aws::String>
115 ModifyDBClusterRequest& WithDBClusterParameterGroupName(DBClusterParameterGroupNameT&& value) { SetDBClusterParameterGroupName(std::forward<DBClusterParameterGroupNameT>(value)); return *this;}
117
119
122 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
123 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
124 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
125 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
126 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
127 ModifyDBClusterRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
128 template<typename VpcSecurityGroupIdsT = Aws::String>
129 ModifyDBClusterRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
131
133
138 inline int GetPort() const { return m_port; }
139 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
140 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
141 inline ModifyDBClusterRequest& WithPort(int value) { SetPort(value); return *this;}
143
145
148 inline const Aws::String& GetMasterUserPassword() const { return m_masterUserPassword; }
149 inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; }
150 template<typename MasterUserPasswordT = Aws::String>
151 void SetMasterUserPassword(MasterUserPasswordT&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = std::forward<MasterUserPasswordT>(value); }
152 template<typename MasterUserPasswordT = Aws::String>
153 ModifyDBClusterRequest& WithMasterUserPassword(MasterUserPasswordT&& value) { SetMasterUserPassword(std::forward<MasterUserPasswordT>(value)); return *this;}
155
157
160 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
161 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
162 template<typename OptionGroupNameT = Aws::String>
163 void SetOptionGroupName(OptionGroupNameT&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::forward<OptionGroupNameT>(value); }
164 template<typename OptionGroupNameT = Aws::String>
165 ModifyDBClusterRequest& WithOptionGroupName(OptionGroupNameT&& value) { SetOptionGroupName(std::forward<OptionGroupNameT>(value)); return *this;}
167
169
179 inline const Aws::String& GetPreferredBackupWindow() const { return m_preferredBackupWindow; }
180 inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
181 template<typename PreferredBackupWindowT = Aws::String>
182 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value); }
183 template<typename PreferredBackupWindowT = Aws::String>
184 ModifyDBClusterRequest& WithPreferredBackupWindow(PreferredBackupWindowT&& value) { SetPreferredBackupWindow(std::forward<PreferredBackupWindowT>(value)); return *this;}
186
188
196 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
197 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
198 template<typename PreferredMaintenanceWindowT = Aws::String>
199 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
200 template<typename PreferredMaintenanceWindowT = Aws::String>
201 ModifyDBClusterRequest& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value)); return *this;}
203
205
210 inline bool GetEnableIAMDatabaseAuthentication() const { return m_enableIAMDatabaseAuthentication; }
211 inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; }
212 inline void SetEnableIAMDatabaseAuthentication(bool value) { m_enableIAMDatabaseAuthenticationHasBeenSet = true; m_enableIAMDatabaseAuthentication = value; }
215
217
223 inline const CloudwatchLogsExportConfiguration& GetCloudwatchLogsExportConfiguration() const { return m_cloudwatchLogsExportConfiguration; }
224 inline bool CloudwatchLogsExportConfigurationHasBeenSet() const { return m_cloudwatchLogsExportConfigurationHasBeenSet; }
225 template<typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
226 void SetCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) { m_cloudwatchLogsExportConfigurationHasBeenSet = true; m_cloudwatchLogsExportConfiguration = std::forward<CloudwatchLogsExportConfigurationT>(value); }
227 template<typename CloudwatchLogsExportConfigurationT = CloudwatchLogsExportConfiguration>
228 ModifyDBClusterRequest& WithCloudwatchLogsExportConfiguration(CloudwatchLogsExportConfigurationT&& value) { SetCloudwatchLogsExportConfiguration(std::forward<CloudwatchLogsExportConfigurationT>(value)); return *this;}
230
232
240 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
241 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
242 template<typename EngineVersionT = Aws::String>
243 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::forward<EngineVersionT>(value); }
244 template<typename EngineVersionT = Aws::String>
245 ModifyDBClusterRequest& WithEngineVersion(EngineVersionT&& value) { SetEngineVersion(std::forward<EngineVersionT>(value)); return *this;}
247
249
255 inline bool GetAllowMajorVersionUpgrade() const { return m_allowMajorVersionUpgrade; }
256 inline bool AllowMajorVersionUpgradeHasBeenSet() const { return m_allowMajorVersionUpgradeHasBeenSet; }
257 inline void SetAllowMajorVersionUpgrade(bool value) { m_allowMajorVersionUpgradeHasBeenSet = true; m_allowMajorVersionUpgrade = value; }
260
262
273 inline const Aws::String& GetDBInstanceParameterGroupName() const { return m_dBInstanceParameterGroupName; }
274 inline bool DBInstanceParameterGroupNameHasBeenSet() const { return m_dBInstanceParameterGroupNameHasBeenSet; }
275 template<typename DBInstanceParameterGroupNameT = Aws::String>
276 void SetDBInstanceParameterGroupName(DBInstanceParameterGroupNameT&& value) { m_dBInstanceParameterGroupNameHasBeenSet = true; m_dBInstanceParameterGroupName = std::forward<DBInstanceParameterGroupNameT>(value); }
277 template<typename DBInstanceParameterGroupNameT = Aws::String>
278 ModifyDBClusterRequest& WithDBInstanceParameterGroupName(DBInstanceParameterGroupNameT&& value) { SetDBInstanceParameterGroupName(std::forward<DBInstanceParameterGroupNameT>(value)); return *this;}
280
282
287 inline bool GetDeletionProtection() const { return m_deletionProtection; }
288 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
289 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
290 inline ModifyDBClusterRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
292
294
298 inline bool GetCopyTagsToSnapshot() const { return m_copyTagsToSnapshot; }
299 inline bool CopyTagsToSnapshotHasBeenSet() const { return m_copyTagsToSnapshotHasBeenSet; }
300 inline void SetCopyTagsToSnapshot(bool value) { m_copyTagsToSnapshotHasBeenSet = true; m_copyTagsToSnapshot = value; }
301 inline ModifyDBClusterRequest& WithCopyTagsToSnapshot(bool value) { SetCopyTagsToSnapshot(value); return *this;}
303
305
311 inline const ServerlessV2ScalingConfiguration& GetServerlessV2ScalingConfiguration() const { return m_serverlessV2ScalingConfiguration; }
312 inline bool ServerlessV2ScalingConfigurationHasBeenSet() const { return m_serverlessV2ScalingConfigurationHasBeenSet; }
313 template<typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
314 void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) { m_serverlessV2ScalingConfigurationHasBeenSet = true; m_serverlessV2ScalingConfiguration = std::forward<ServerlessV2ScalingConfigurationT>(value); }
315 template<typename ServerlessV2ScalingConfigurationT = ServerlessV2ScalingConfiguration>
316 ModifyDBClusterRequest& WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfigurationT&& value) { SetServerlessV2ScalingConfiguration(std::forward<ServerlessV2ScalingConfigurationT>(value)); return *this;}
318
320
331 inline const Aws::String& GetStorageType() const { return m_storageType; }
332 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
333 template<typename StorageTypeT = Aws::String>
334 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
335 template<typename StorageTypeT = Aws::String>
336 ModifyDBClusterRequest& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
338 private:
339
340 Aws::String m_dBClusterIdentifier;
341 bool m_dBClusterIdentifierHasBeenSet = false;
342
343 Aws::String m_newDBClusterIdentifier;
344 bool m_newDBClusterIdentifierHasBeenSet = false;
345
346 bool m_applyImmediately{false};
347 bool m_applyImmediatelyHasBeenSet = false;
348
349 int m_backupRetentionPeriod{0};
350 bool m_backupRetentionPeriodHasBeenSet = false;
351
352 Aws::String m_dBClusterParameterGroupName;
353 bool m_dBClusterParameterGroupNameHasBeenSet = false;
354
355 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
356 bool m_vpcSecurityGroupIdsHasBeenSet = false;
357
358 int m_port{0};
359 bool m_portHasBeenSet = false;
360
361 Aws::String m_masterUserPassword;
362 bool m_masterUserPasswordHasBeenSet = false;
363
364 Aws::String m_optionGroupName;
365 bool m_optionGroupNameHasBeenSet = false;
366
367 Aws::String m_preferredBackupWindow;
368 bool m_preferredBackupWindowHasBeenSet = false;
369
370 Aws::String m_preferredMaintenanceWindow;
371 bool m_preferredMaintenanceWindowHasBeenSet = false;
372
373 bool m_enableIAMDatabaseAuthentication{false};
374 bool m_enableIAMDatabaseAuthenticationHasBeenSet = false;
375
376 CloudwatchLogsExportConfiguration m_cloudwatchLogsExportConfiguration;
377 bool m_cloudwatchLogsExportConfigurationHasBeenSet = false;
378
379 Aws::String m_engineVersion;
380 bool m_engineVersionHasBeenSet = false;
381
382 bool m_allowMajorVersionUpgrade{false};
383 bool m_allowMajorVersionUpgradeHasBeenSet = false;
384
385 Aws::String m_dBInstanceParameterGroupName;
386 bool m_dBInstanceParameterGroupNameHasBeenSet = false;
387
388 bool m_deletionProtection{false};
389 bool m_deletionProtectionHasBeenSet = false;
390
391 bool m_copyTagsToSnapshot{false};
392 bool m_copyTagsToSnapshotHasBeenSet = false;
393
394 ServerlessV2ScalingConfiguration m_serverlessV2ScalingConfiguration;
395 bool m_serverlessV2ScalingConfigurationHasBeenSet = false;
396
397 Aws::String m_storageType;
398 bool m_storageTypeHasBeenSet = false;
399 };
400
401} // namespace Model
402} // namespace Neptune
403} // 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