AWS SDK for C++  1.8.71
AWS SDK for C++
CreateClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/dax/DAX_EXPORTS.h>
8 #include <aws/dax/DAXRequest.h>
12 #include <aws/dax/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DAX
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "CreateCluster"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
47  inline const Aws::String& GetClusterName() const{ return m_clusterName; }
48 
56  inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
57 
65  inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
66 
74  inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
75 
83  inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
84 
92  inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
93 
101  inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
102 
110  inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
111 
112 
116  inline const Aws::String& GetNodeType() const{ return m_nodeType; }
117 
121  inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
122 
126  inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
127 
131  inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
132 
136  inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
137 
141  inline CreateClusterRequest& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
142 
146  inline CreateClusterRequest& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
147 
151  inline CreateClusterRequest& WithNodeType(const char* value) { SetNodeType(value); return *this;}
152 
153 
157  inline const Aws::String& GetDescription() const{ return m_description; }
158 
162  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
163 
167  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
168 
172  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
173 
177  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
178 
182  inline CreateClusterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
183 
187  inline CreateClusterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
188 
192  inline CreateClusterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
193 
194 
205  inline int GetReplicationFactor() const{ return m_replicationFactor; }
206 
217  inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
218 
229  inline void SetReplicationFactor(int value) { m_replicationFactorHasBeenSet = true; m_replicationFactor = value; }
230 
241  inline CreateClusterRequest& WithReplicationFactor(int value) { SetReplicationFactor(value); return *this;}
242 
243 
251  inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
252 
260  inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
261 
269  inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
270 
278  inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
279 
287  inline CreateClusterRequest& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
288 
296  inline CreateClusterRequest& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
297 
305  inline CreateClusterRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
306 
314  inline CreateClusterRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
315 
323  inline CreateClusterRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
324 
325 
332  inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; }
333 
340  inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
341 
348  inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; }
349 
356  inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); }
357 
364  inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); }
365 
372  inline CreateClusterRequest& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;}
373 
380  inline CreateClusterRequest& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;}
381 
388  inline CreateClusterRequest& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;}
389 
390 
396  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
397 
403  inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
404 
410  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
411 
417  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
418 
424  inline CreateClusterRequest& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
425 
431  inline CreateClusterRequest& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
432 
438  inline CreateClusterRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
439 
445  inline CreateClusterRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
446 
452  inline CreateClusterRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
453 
454 
468  inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
469 
483  inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
484 
498  inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
499 
513  inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
514 
528  inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
529 
543  inline CreateClusterRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;}
544 
558  inline CreateClusterRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;}
559 
573  inline CreateClusterRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
574 
575 
581  inline const Aws::String& GetNotificationTopicArn() const{ return m_notificationTopicArn; }
582 
588  inline bool NotificationTopicArnHasBeenSet() const { return m_notificationTopicArnHasBeenSet; }
589 
595  inline void SetNotificationTopicArn(const Aws::String& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = value; }
596 
602  inline void SetNotificationTopicArn(Aws::String&& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = std::move(value); }
603 
609  inline void SetNotificationTopicArn(const char* value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn.assign(value); }
610 
616  inline CreateClusterRequest& WithNotificationTopicArn(const Aws::String& value) { SetNotificationTopicArn(value); return *this;}
617 
623  inline CreateClusterRequest& WithNotificationTopicArn(Aws::String&& value) { SetNotificationTopicArn(std::move(value)); return *this;}
624 
630  inline CreateClusterRequest& WithNotificationTopicArn(const char* value) { SetNotificationTopicArn(value); return *this;}
631 
632 
638  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
639 
645  inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
646 
652  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
653 
659  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
660 
666  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
667 
673  inline CreateClusterRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
674 
680  inline CreateClusterRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
681 
687  inline CreateClusterRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
688 
689 
693  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
694 
698  inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
699 
703  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
704 
708  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = std::move(value); }
709 
713  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
714 
718  inline CreateClusterRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
719 
723  inline CreateClusterRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(std::move(value)); return *this;}
724 
728  inline CreateClusterRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
729 
730 
734  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
735 
739  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
740 
744  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
745 
749  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
750 
754  inline CreateClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
755 
759  inline CreateClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
760 
764  inline CreateClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
765 
769  inline CreateClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
770 
771 
776  inline const SSESpecification& GetSSESpecification() const{ return m_sSESpecification; }
777 
782  inline bool SSESpecificationHasBeenSet() const { return m_sSESpecificationHasBeenSet; }
783 
788  inline void SetSSESpecification(const SSESpecification& value) { m_sSESpecificationHasBeenSet = true; m_sSESpecification = value; }
789 
794  inline void SetSSESpecification(SSESpecification&& value) { m_sSESpecificationHasBeenSet = true; m_sSESpecification = std::move(value); }
795 
800  inline CreateClusterRequest& WithSSESpecification(const SSESpecification& value) { SetSSESpecification(value); return *this;}
801 
806  inline CreateClusterRequest& WithSSESpecification(SSESpecification&& value) { SetSSESpecification(std::move(value)); return *this;}
807 
808  private:
809 
810  Aws::String m_clusterName;
811  bool m_clusterNameHasBeenSet;
812 
813  Aws::String m_nodeType;
814  bool m_nodeTypeHasBeenSet;
815 
816  Aws::String m_description;
817  bool m_descriptionHasBeenSet;
818 
819  int m_replicationFactor;
820  bool m_replicationFactorHasBeenSet;
821 
822  Aws::Vector<Aws::String> m_availabilityZones;
823  bool m_availabilityZonesHasBeenSet;
824 
825  Aws::String m_subnetGroupName;
826  bool m_subnetGroupNameHasBeenSet;
827 
828  Aws::Vector<Aws::String> m_securityGroupIds;
829  bool m_securityGroupIdsHasBeenSet;
830 
831  Aws::String m_preferredMaintenanceWindow;
832  bool m_preferredMaintenanceWindowHasBeenSet;
833 
834  Aws::String m_notificationTopicArn;
835  bool m_notificationTopicArnHasBeenSet;
836 
837  Aws::String m_iamRoleArn;
838  bool m_iamRoleArnHasBeenSet;
839 
840  Aws::String m_parameterGroupName;
841  bool m_parameterGroupNameHasBeenSet;
842 
843  Aws::Vector<Tag> m_tags;
844  bool m_tagsHasBeenSet;
845 
846  SSESpecification m_sSESpecification;
847  bool m_sSESpecificationHasBeenSet;
848  };
849 
850 } // namespace Model
851 } // namespace DAX
852 } // namespace Aws
CreateClusterRequest & WithSubnetGroupName(const Aws::String &value)
const Aws::String & GetDescription() const
CreateClusterRequest & AddSecurityGroupIds(Aws::String &&value)
CreateClusterRequest & AddAvailabilityZones(const char *value)
CreateClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
CreateClusterRequest & WithIamRoleArn(const Aws::String &value)
CreateClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
void SetClusterName(Aws::String &&value)
CreateClusterRequest & WithSubnetGroupName(Aws::String &&value)
CreateClusterRequest & WithParameterGroupName(const char *value)
void SetNotificationTopicArn(Aws::String &&value)
CreateClusterRequest & AddTags(const Tag &value)
CreateClusterRequest & WithNodeType(const Aws::String &value)
CreateClusterRequest & WithNotificationTopicArn(const Aws::String &value)
CreateClusterRequest & WithIamRoleArn(const char *value)
void SetNotificationTopicArn(const char *value)
CreateClusterRequest & WithNodeType(Aws::String &&value)
CreateClusterRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetParameterGroupName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateClusterRequest & WithPreferredMaintenanceWindow(const char *value)
void SetParameterGroupName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateClusterRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithDescription(const char *value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
const Aws::String & GetPreferredMaintenanceWindow() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClusterName() const
CreateClusterRequest & WithClusterName(const Aws::String &value)
CreateClusterRequest & WithReplicationFactor(int value)
CreateClusterRequest & WithParameterGroupName(Aws::String &&value)
void SetSSESpecification(const SSESpecification &value)
const SSESpecification & GetSSESpecification() const
CreateClusterRequest & WithDescription(Aws::String &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterRequest & WithNotificationTopicArn(Aws::String &&value)
void SetSubnetGroupName(Aws::String &&value)
CreateClusterRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetSSESpecification(SSESpecification &&value)
CreateClusterRequest & WithTags(Aws::Vector< Tag > &&value)
void SetDescription(const Aws::String &value)
const Aws::String & GetParameterGroupName() const
void SetNodeType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetPreferredMaintenanceWindow(const char *value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & AddSecurityGroupIds(const Aws::String &value)
CreateClusterRequest & WithNotificationTopicArn(const char *value)
const Aws::String & GetIamRoleArn() const
CreateClusterRequest & WithClusterName(const char *value)
void SetNotificationTopicArn(const Aws::String &value)
CreateClusterRequest & WithNodeType(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(Aws::Vector< Tag > &&value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
const Aws::String & GetSubnetGroupName() const
CreateClusterRequest & AddAvailabilityZones(Aws::String &&value)
void SetSubnetGroupName(const Aws::String &value)
void SetPreferredMaintenanceWindow(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateClusterRequest & AddTags(Tag &&value)
CreateClusterRequest & WithSSESpecification(SSESpecification &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithIamRoleArn(Aws::String &&value)
CreateClusterRequest & AddAvailabilityZones(const Aws::String &value)
CreateClusterRequest & WithParameterGroupName(const Aws::String &value)
CreateClusterRequest & WithSSESpecification(const SSESpecification &value)
#define AWS_DAX_API
Definition: DAX_EXPORTS.h:28
const Aws::String & GetNodeType() const
void SetClusterName(const Aws::String &value)
CreateClusterRequest & WithSubnetGroupName(const char *value)
CreateClusterRequest & WithClusterName(Aws::String &&value)
void SetIamRoleArn(const Aws::String &value)
const Aws::String & GetNotificationTopicArn() const
CreateClusterRequest & AddSecurityGroupIds(const char *value)