AWS SDK for C++  0.12.9
AWS SDK for C++
ModifyClusterRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
41  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
42 
47  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
48 
53  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
54 
59  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
60 
65  inline ModifyClusterRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
66 
71  inline ModifyClusterRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
72 
77  inline ModifyClusterRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
78 
88  inline const Aws::String& GetClusterType() const{ return m_clusterType; }
89 
99  inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
100 
110  inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
111 
121  inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
122 
132  inline ModifyClusterRequest& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
133 
143  inline ModifyClusterRequest& WithClusterType(Aws::String&& value) { SetClusterType(value); return *this;}
144 
154  inline ModifyClusterRequest& WithClusterType(const char* value) { SetClusterType(value); return *this;}
155 
169  inline const Aws::String& GetNodeType() const{ return m_nodeType; }
170 
184  inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
185 
199  inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
200 
214  inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
215 
229  inline ModifyClusterRequest& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
230 
244  inline ModifyClusterRequest& WithNodeType(Aws::String&& value) { SetNodeType(value); return *this;}
245 
259  inline ModifyClusterRequest& WithNodeType(const char* value) { SetNodeType(value); return *this;}
260 
273  inline long GetNumberOfNodes() const{ return m_numberOfNodes; }
274 
287  inline void SetNumberOfNodes(long value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
288 
301  inline ModifyClusterRequest& WithNumberOfNodes(long value) { SetNumberOfNodes(value); return *this;}
302 
312  inline const Aws::Vector<Aws::String>& GetClusterSecurityGroups() const{ return m_clusterSecurityGroups; }
313 
323  inline void SetClusterSecurityGroups(const Aws::Vector<Aws::String>& value) { m_clusterSecurityGroupsHasBeenSet = true; m_clusterSecurityGroups = value; }
324 
334  inline void SetClusterSecurityGroups(Aws::Vector<Aws::String>&& value) { m_clusterSecurityGroupsHasBeenSet = true; m_clusterSecurityGroups = value; }
335 
345  inline ModifyClusterRequest& WithClusterSecurityGroups(const Aws::Vector<Aws::String>& value) { SetClusterSecurityGroups(value); return *this;}
346 
356  inline ModifyClusterRequest& WithClusterSecurityGroups(Aws::Vector<Aws::String>&& value) { SetClusterSecurityGroups(value); return *this;}
357 
367  inline ModifyClusterRequest& AddClusterSecurityGroups(const Aws::String& value) { m_clusterSecurityGroupsHasBeenSet = true; m_clusterSecurityGroups.push_back(value); return *this; }
368 
378  inline ModifyClusterRequest& AddClusterSecurityGroups(Aws::String&& value) { m_clusterSecurityGroupsHasBeenSet = true; m_clusterSecurityGroups.push_back(value); return *this; }
379 
389  inline ModifyClusterRequest& AddClusterSecurityGroups(const char* value) { m_clusterSecurityGroupsHasBeenSet = true; m_clusterSecurityGroups.push_back(value); return *this; }
390 
395  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
396 
401  inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
402 
407  inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
408 
413  inline ModifyClusterRequest& WithVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupIds(value); return *this;}
414 
419  inline ModifyClusterRequest& WithVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupIds(value); return *this;}
420 
425  inline ModifyClusterRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
426 
431  inline ModifyClusterRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
432 
437  inline ModifyClusterRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
438 
453  inline const Aws::String& GetMasterUserPassword() const{ return m_masterUserPassword; }
454 
469  inline void SetMasterUserPassword(const Aws::String& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
470 
485  inline void SetMasterUserPassword(Aws::String&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
486 
501  inline void SetMasterUserPassword(const char* value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword.assign(value); }
502 
517  inline ModifyClusterRequest& WithMasterUserPassword(const Aws::String& value) { SetMasterUserPassword(value); return *this;}
518 
533  inline ModifyClusterRequest& WithMasterUserPassword(Aws::String&& value) { SetMasterUserPassword(value); return *this;}
534 
549  inline ModifyClusterRequest& WithMasterUserPassword(const char* value) { SetMasterUserPassword(value); return *this;}
550 
558  inline const Aws::String& GetClusterParameterGroupName() const{ return m_clusterParameterGroupName; }
559 
567  inline void SetClusterParameterGroupName(const Aws::String& value) { m_clusterParameterGroupNameHasBeenSet = true; m_clusterParameterGroupName = value; }
568 
576  inline void SetClusterParameterGroupName(Aws::String&& value) { m_clusterParameterGroupNameHasBeenSet = true; m_clusterParameterGroupName = value; }
577 
585  inline void SetClusterParameterGroupName(const char* value) { m_clusterParameterGroupNameHasBeenSet = true; m_clusterParameterGroupName.assign(value); }
586 
594  inline ModifyClusterRequest& WithClusterParameterGroupName(const Aws::String& value) { SetClusterParameterGroupName(value); return *this;}
595 
603  inline ModifyClusterRequest& WithClusterParameterGroupName(Aws::String&& value) { SetClusterParameterGroupName(value); return *this;}
604 
612  inline ModifyClusterRequest& WithClusterParameterGroupName(const char* value) { SetClusterParameterGroupName(value); return *this;}
613 
623  inline long GetAutomatedSnapshotRetentionPeriod() const{ return m_automatedSnapshotRetentionPeriod; }
624 
634  inline void SetAutomatedSnapshotRetentionPeriod(long value) { m_automatedSnapshotRetentionPeriodHasBeenSet = true; m_automatedSnapshotRetentionPeriod = value; }
635 
645  inline ModifyClusterRequest& WithAutomatedSnapshotRetentionPeriod(long value) { SetAutomatedSnapshotRetentionPeriod(value); return *this;}
646 
658  inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
659 
671  inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
672 
684  inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
685 
697  inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
698 
710  inline ModifyClusterRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;}
711 
723  inline ModifyClusterRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(value); return *this;}
724 
736  inline ModifyClusterRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
737 
749  inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
750 
762  inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
763 
775  inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
776 
788  inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
789 
801  inline ModifyClusterRequest& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
802 
814  inline ModifyClusterRequest& WithClusterVersion(Aws::String&& value) { SetClusterVersion(value); return *this;}
815 
827  inline ModifyClusterRequest& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
828 
834  inline bool GetAllowVersionUpgrade() const{ return m_allowVersionUpgrade; }
835 
841  inline void SetAllowVersionUpgrade(bool value) { m_allowVersionUpgradeHasBeenSet = true; m_allowVersionUpgrade = value; }
842 
848  inline ModifyClusterRequest& WithAllowVersionUpgrade(bool value) { SetAllowVersionUpgrade(value); return *this;}
849 
854  inline const Aws::String& GetHsmClientCertificateIdentifier() const{ return m_hsmClientCertificateIdentifier; }
855 
860  inline void SetHsmClientCertificateIdentifier(const Aws::String& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
861 
866  inline void SetHsmClientCertificateIdentifier(Aws::String&& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
867 
872  inline void SetHsmClientCertificateIdentifier(const char* value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier.assign(value); }
873 
878  inline ModifyClusterRequest& WithHsmClientCertificateIdentifier(const Aws::String& value) { SetHsmClientCertificateIdentifier(value); return *this;}
879 
884  inline ModifyClusterRequest& WithHsmClientCertificateIdentifier(Aws::String&& value) { SetHsmClientCertificateIdentifier(value); return *this;}
885 
890  inline ModifyClusterRequest& WithHsmClientCertificateIdentifier(const char* value) { SetHsmClientCertificateIdentifier(value); return *this;}
891 
896  inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; }
897 
902  inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
903 
908  inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
909 
914  inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); }
915 
920  inline ModifyClusterRequest& WithHsmConfigurationIdentifier(const Aws::String& value) { SetHsmConfigurationIdentifier(value); return *this;}
921 
926  inline ModifyClusterRequest& WithHsmConfigurationIdentifier(Aws::String&& value) { SetHsmConfigurationIdentifier(value); return *this;}
927 
932  inline ModifyClusterRequest& WithHsmConfigurationIdentifier(const char* value) { SetHsmConfigurationIdentifier(value); return *this;}
933 
942  inline const Aws::String& GetNewClusterIdentifier() const{ return m_newClusterIdentifier; }
943 
952  inline void SetNewClusterIdentifier(const Aws::String& value) { m_newClusterIdentifierHasBeenSet = true; m_newClusterIdentifier = value; }
953 
962  inline void SetNewClusterIdentifier(Aws::String&& value) { m_newClusterIdentifierHasBeenSet = true; m_newClusterIdentifier = value; }
963 
972  inline void SetNewClusterIdentifier(const char* value) { m_newClusterIdentifierHasBeenSet = true; m_newClusterIdentifier.assign(value); }
973 
982  inline ModifyClusterRequest& WithNewClusterIdentifier(const Aws::String& value) { SetNewClusterIdentifier(value); return *this;}
983 
992  inline ModifyClusterRequest& WithNewClusterIdentifier(Aws::String&& value) { SetNewClusterIdentifier(value); return *this;}
993 
1002  inline ModifyClusterRequest& WithNewClusterIdentifier(const char* value) { SetNewClusterIdentifier(value); return *this;}
1003 
1008  inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
1009 
1014  inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
1015 
1020  inline ModifyClusterRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
1021 
1030  inline const Aws::String& GetElasticIp() const{ return m_elasticIp; }
1031 
1040  inline void SetElasticIp(const Aws::String& value) { m_elasticIpHasBeenSet = true; m_elasticIp = value; }
1041 
1050  inline void SetElasticIp(Aws::String&& value) { m_elasticIpHasBeenSet = true; m_elasticIp = value; }
1051 
1060  inline void SetElasticIp(const char* value) { m_elasticIpHasBeenSet = true; m_elasticIp.assign(value); }
1061 
1070  inline ModifyClusterRequest& WithElasticIp(const Aws::String& value) { SetElasticIp(value); return *this;}
1071 
1080  inline ModifyClusterRequest& WithElasticIp(Aws::String&& value) { SetElasticIp(value); return *this;}
1081 
1090  inline ModifyClusterRequest& WithElasticIp(const char* value) { SetElasticIp(value); return *this;}
1091 
1092  private:
1093  Aws::String m_clusterIdentifier;
1094  bool m_clusterIdentifierHasBeenSet;
1095  Aws::String m_clusterType;
1096  bool m_clusterTypeHasBeenSet;
1097  Aws::String m_nodeType;
1098  bool m_nodeTypeHasBeenSet;
1099  long m_numberOfNodes;
1100  bool m_numberOfNodesHasBeenSet;
1101  Aws::Vector<Aws::String> m_clusterSecurityGroups;
1102  bool m_clusterSecurityGroupsHasBeenSet;
1103  Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
1104  bool m_vpcSecurityGroupIdsHasBeenSet;
1105  Aws::String m_masterUserPassword;
1106  bool m_masterUserPasswordHasBeenSet;
1107  Aws::String m_clusterParameterGroupName;
1108  bool m_clusterParameterGroupNameHasBeenSet;
1109  long m_automatedSnapshotRetentionPeriod;
1110  bool m_automatedSnapshotRetentionPeriodHasBeenSet;
1111  Aws::String m_preferredMaintenanceWindow;
1112  bool m_preferredMaintenanceWindowHasBeenSet;
1113  Aws::String m_clusterVersion;
1114  bool m_clusterVersionHasBeenSet;
1115  bool m_allowVersionUpgrade;
1116  bool m_allowVersionUpgradeHasBeenSet;
1117  Aws::String m_hsmClientCertificateIdentifier;
1118  bool m_hsmClientCertificateIdentifierHasBeenSet;
1119  Aws::String m_hsmConfigurationIdentifier;
1120  bool m_hsmConfigurationIdentifierHasBeenSet;
1121  Aws::String m_newClusterIdentifier;
1122  bool m_newClusterIdentifierHasBeenSet;
1123  bool m_publiclyAccessible;
1124  bool m_publiclyAccessibleHasBeenSet;
1125  Aws::String m_elasticIp;
1126  bool m_elasticIpHasBeenSet;
1127  };
1128 
1129 } // namespace Model
1130 } // namespace Redshift
1131 } // namespace Aws
ModifyClusterRequest & WithElasticIp(Aws::String &&value)
void SetHsmConfigurationIdentifier(const Aws::String &value)
void SetMasterUserPassword(const Aws::String &value)
ModifyClusterRequest & WithNodeType(Aws::String &&value)
ModifyClusterRequest & WithClusterParameterGroupName(Aws::String &&value)
void SetHsmClientCertificateIdentifier(const Aws::String &value)
const Aws::String & GetHsmConfigurationIdentifier() const
const Aws::String & GetClusterParameterGroupName() const
ModifyClusterRequest & AddVpcSecurityGroupIds(const char *value)
ModifyClusterRequest & WithNumberOfNodes(long value)
const Aws::String & GetPreferredMaintenanceWindow() const
const Aws::String & GetHsmClientCertificateIdentifier() const
ModifyClusterRequest & WithClusterIdentifier(const Aws::String &value)
ModifyClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
ModifyClusterRequest & WithAutomatedSnapshotRetentionPeriod(long value)
const Aws::String & GetClusterVersion() const
void SetClusterSecurityGroups(Aws::Vector< Aws::String > &&value)
const Aws::String & GetNewClusterIdentifier() const
ModifyClusterRequest & WithHsmConfigurationIdentifier(const Aws::String &value)
ModifyClusterRequest & WithClusterVersion(const Aws::String &value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ModifyClusterRequest & WithClusterSecurityGroups(Aws::Vector< Aws::String > &&value)
ModifyClusterRequest & WithHsmClientCertificateIdentifier(const Aws::String &value)
ModifyClusterRequest & WithMasterUserPassword(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetClusterIdentifier(const Aws::String &value)
ModifyClusterRequest & WithClusterParameterGroupName(const char *value)
ModifyClusterRequest & WithNewClusterIdentifier(const Aws::String &value)
ModifyClusterRequest & WithMasterUserPassword(const char *value)
ModifyClusterRequest & WithHsmClientCertificateIdentifier(Aws::String &&value)
ModifyClusterRequest & WithClusterSecurityGroups(const Aws::Vector< Aws::String > &value)
ModifyClusterRequest & WithElasticIp(const char *value)
void SetClusterVersion(const Aws::String &value)
ModifyClusterRequest & WithNewClusterIdentifier(Aws::String &&value)
void SetHsmConfigurationIdentifier(Aws::String &&value)
void SetClusterParameterGroupName(Aws::String &&value)
ModifyClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetMasterUserPassword() const
ModifyClusterRequest & WithClusterVersion(const char *value)
ModifyClusterRequest & WithElasticIp(const Aws::String &value)
ModifyClusterRequest & WithMasterUserPassword(const Aws::String &value)
ModifyClusterRequest & WithClusterType(Aws::String &&value)
#define AWS_REDSHIFT_API
ModifyClusterRequest & WithHsmConfigurationIdentifier(Aws::String &&value)
ModifyClusterRequest & WithNewClusterIdentifier(const char *value)
ModifyClusterRequest & AddClusterSecurityGroups(const char *value)
void SetClusterSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetNodeType(const Aws::String &value)
void SetClusterParameterGroupName(const Aws::String &value)
ModifyClusterRequest & WithNodeType(const char *value)
ModifyClusterRequest & WithNodeType(const Aws::String &value)
ModifyClusterRequest & WithClusterParameterGroupName(const Aws::String &value)
void SetHsmClientCertificateIdentifier(const char *value)
ModifyClusterRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ModifyClusterRequest & WithClusterVersion(Aws::String &&value)
ModifyClusterRequest & WithHsmConfigurationIdentifier(const char *value)
ModifyClusterRequest & AddClusterSecurityGroups(const Aws::String &value)
ModifyClusterRequest & WithHsmClientCertificateIdentifier(const char *value)
ModifyClusterRequest & WithClusterIdentifier(Aws::String &&value)
const Aws::Vector< Aws::String > & GetClusterSecurityGroups() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyClusterRequest & WithClusterType(const char *value)
ModifyClusterRequest & AddVpcSecurityGroupIds(Aws::String &&value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
ModifyClusterRequest & WithClusterType(const Aws::String &value)
ModifyClusterRequest & WithClusterIdentifier(const char *value)
ModifyClusterRequest & AddClusterSecurityGroups(Aws::String &&value)
void SetHsmClientCertificateIdentifier(Aws::String &&value)
void SetPreferredMaintenanceWindow(Aws::String &&value)
ModifyClusterRequest & WithPubliclyAccessible(bool value)
ModifyClusterRequest & WithAllowVersionUpgrade(bool value)
const Aws::String & GetClusterIdentifier() const
void SetNewClusterIdentifier(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ModifyClusterRequest & WithPreferredMaintenanceWindow(const char *value)
ModifyClusterRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetClusterType(const Aws::String &value)
JSON (JavaScript Object Notation).
ModifyClusterRequest & AddVpcSecurityGroupIds(const Aws::String &value)