AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/dax/DAX_EXPORTS.h>
8#include <aws/dax/DAXRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dax/model/SSESpecification.h>
12#include <aws/dax/model/ClusterEndpointEncryptionType.h>
13#include <aws/dax/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DAX
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DAX_API CreateClusterRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
35
36 AWS_DAX_API Aws::String SerializePayload() const override;
37
39
40
42
49 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
50 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
51 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
52 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
53 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
54 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
55 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
56 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
58
60
63 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
64 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
65 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
66 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
67 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
68 inline CreateClusterRequest& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
69 inline CreateClusterRequest& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
70 inline CreateClusterRequest& WithNodeType(const char* value) { SetNodeType(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline CreateClusterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline CreateClusterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline CreateClusterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
98 inline int GetReplicationFactor() const{ return m_replicationFactor; }
99 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
100 inline void SetReplicationFactor(int value) { m_replicationFactorHasBeenSet = true; m_replicationFactor = value; }
101 inline CreateClusterRequest& WithReplicationFactor(int value) { SetReplicationFactor(value); return *this;}
103
105
112 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
113 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
114 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
115 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
118 inline CreateClusterRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
119 inline CreateClusterRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
120 inline CreateClusterRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
122
124
130 inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; }
131 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
132 inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; }
133 inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); }
134 inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); }
135 inline CreateClusterRequest& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;}
136 inline CreateClusterRequest& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;}
137 inline CreateClusterRequest& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;}
139
141
146 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
147 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
148 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
149 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
152 inline CreateClusterRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
153 inline CreateClusterRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
154 inline CreateClusterRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
156
158
171 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
172 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
173 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
174 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
175 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
180
182
187 inline const Aws::String& GetNotificationTopicArn() const{ return m_notificationTopicArn; }
188 inline bool NotificationTopicArnHasBeenSet() const { return m_notificationTopicArnHasBeenSet; }
189 inline void SetNotificationTopicArn(const Aws::String& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = value; }
190 inline void SetNotificationTopicArn(Aws::String&& value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn = std::move(value); }
191 inline void SetNotificationTopicArn(const char* value) { m_notificationTopicArnHasBeenSet = true; m_notificationTopicArn.assign(value); }
193 inline CreateClusterRequest& WithNotificationTopicArn(Aws::String&& value) { SetNotificationTopicArn(std::move(value)); return *this;}
194 inline CreateClusterRequest& WithNotificationTopicArn(const char* value) { SetNotificationTopicArn(value); return *this;}
196
198
203 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
204 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
205 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
206 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
207 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
208 inline CreateClusterRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
209 inline CreateClusterRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
210 inline CreateClusterRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
212
214
217 inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
218 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
219 inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
220 inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = std::move(value); }
221 inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
223 inline CreateClusterRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(std::move(value)); return *this;}
224 inline CreateClusterRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
226
228
231 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
234 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
235 inline CreateClusterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
236 inline CreateClusterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
237 inline CreateClusterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
238 inline CreateClusterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
240
242
246 inline const SSESpecification& GetSSESpecification() const{ return m_sSESpecification; }
247 inline bool SSESpecificationHasBeenSet() const { return m_sSESpecificationHasBeenSet; }
248 inline void SetSSESpecification(const SSESpecification& value) { m_sSESpecificationHasBeenSet = true; m_sSESpecification = value; }
249 inline void SetSSESpecification(SSESpecification&& value) { m_sSESpecificationHasBeenSet = true; m_sSESpecification = std::move(value); }
251 inline CreateClusterRequest& WithSSESpecification(SSESpecification&& value) { SetSSESpecification(std::move(value)); return *this;}
253
255
260 inline const ClusterEndpointEncryptionType& GetClusterEndpointEncryptionType() const{ return m_clusterEndpointEncryptionType; }
261 inline bool ClusterEndpointEncryptionTypeHasBeenSet() const { return m_clusterEndpointEncryptionTypeHasBeenSet; }
262 inline void SetClusterEndpointEncryptionType(const ClusterEndpointEncryptionType& value) { m_clusterEndpointEncryptionTypeHasBeenSet = true; m_clusterEndpointEncryptionType = value; }
263 inline void SetClusterEndpointEncryptionType(ClusterEndpointEncryptionType&& value) { m_clusterEndpointEncryptionTypeHasBeenSet = true; m_clusterEndpointEncryptionType = std::move(value); }
267 private:
268
269 Aws::String m_clusterName;
270 bool m_clusterNameHasBeenSet = false;
271
272 Aws::String m_nodeType;
273 bool m_nodeTypeHasBeenSet = false;
274
275 Aws::String m_description;
276 bool m_descriptionHasBeenSet = false;
277
278 int m_replicationFactor;
279 bool m_replicationFactorHasBeenSet = false;
280
281 Aws::Vector<Aws::String> m_availabilityZones;
282 bool m_availabilityZonesHasBeenSet = false;
283
284 Aws::String m_subnetGroupName;
285 bool m_subnetGroupNameHasBeenSet = false;
286
287 Aws::Vector<Aws::String> m_securityGroupIds;
288 bool m_securityGroupIdsHasBeenSet = false;
289
290 Aws::String m_preferredMaintenanceWindow;
291 bool m_preferredMaintenanceWindowHasBeenSet = false;
292
293 Aws::String m_notificationTopicArn;
294 bool m_notificationTopicArnHasBeenSet = false;
295
296 Aws::String m_iamRoleArn;
297 bool m_iamRoleArnHasBeenSet = false;
298
299 Aws::String m_parameterGroupName;
300 bool m_parameterGroupNameHasBeenSet = false;
301
302 Aws::Vector<Tag> m_tags;
303 bool m_tagsHasBeenSet = false;
304
305 SSESpecification m_sSESpecification;
306 bool m_sSESpecificationHasBeenSet = false;
307
308 ClusterEndpointEncryptionType m_clusterEndpointEncryptionType;
309 bool m_clusterEndpointEncryptionTypeHasBeenSet = false;
310 };
311
312} // namespace Model
313} // namespace DAX
314} // namespace Aws
const Aws::String & GetDescription() const
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithNodeType(const char *value)
const Aws::String & GetSubnetGroupName() const
CreateClusterRequest & WithReplicationFactor(int value)
CreateClusterRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetNodeType() const
CreateClusterRequest & WithClusterName(Aws::String &&value)
const Aws::String & GetPreferredMaintenanceWindow() const
CreateClusterRequest & AddSecurityGroupIds(Aws::String &&value)
CreateClusterRequest & WithParameterGroupName(const Aws::String &value)
CreateClusterRequest & AddSecurityGroupIds(const char *value)
CreateClusterRequest & AddTags(Tag &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetIamRoleArn() const
void SetSSESpecification(SSESpecification &&value)
CreateClusterRequest & WithParameterGroupName(Aws::String &&value)
CreateClusterRequest & WithDescription(const char *value)
CreateClusterRequest & AddAvailabilityZones(Aws::String &&value)
void SetNotificationTopicArn(const Aws::String &value)
void SetClusterEndpointEncryptionType(ClusterEndpointEncryptionType &&value)
void SetSSESpecification(const SSESpecification &value)
CreateClusterRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
void SetIamRoleArn(const Aws::String &value)
const Aws::String & GetClusterName() const
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetPreferredMaintenanceWindow(const Aws::String &value)
void SetClusterEndpointEncryptionType(const ClusterEndpointEncryptionType &value)
CreateClusterRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithDescription(Aws::String &&value)
void SetClusterName(const Aws::String &value)
CreateClusterRequest & WithSubnetGroupName(const Aws::String &value)
void SetNodeType(const Aws::String &value)
CreateClusterRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
void SetPreferredMaintenanceWindow(const char *value)
CreateClusterRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
CreateClusterRequest & WithNotificationTopicArn(const Aws::String &value)
CreateClusterRequest & WithNotificationTopicArn(Aws::String &&value)
AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateClusterRequest & AddTags(const Tag &value)
CreateClusterRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateClusterRequest & WithSSESpecification(SSESpecification &&value)
CreateClusterRequest & WithNodeType(Aws::String &&value)
CreateClusterRequest & WithClusterEndpointEncryptionType(const ClusterEndpointEncryptionType &value)
CreateClusterRequest & WithIamRoleArn(const Aws::String &value)
CreateClusterRequest & WithSubnetGroupName(const char *value)
void SetParameterGroupName(Aws::String &&value)
void SetParameterGroupName(const Aws::String &value)
CreateClusterRequest & WithParameterGroupName(const char *value)
CreateClusterRequest & WithNodeType(const Aws::String &value)
const SSESpecification & GetSSESpecification() const
void SetNotificationTopicArn(Aws::String &&value)
CreateClusterRequest & WithClusterEndpointEncryptionType(ClusterEndpointEncryptionType &&value)
AWS_DAX_API Aws::String SerializePayload() const override
CreateClusterRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
CreateClusterRequest & WithIamRoleArn(const char *value)
const ClusterEndpointEncryptionType & GetClusterEndpointEncryptionType() const
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithIamRoleArn(Aws::String &&value)
void SetSubnetGroupName(const Aws::String &value)
CreateClusterRequest & AddAvailabilityZones(const char *value)
CreateClusterRequest & WithClusterName(const Aws::String &value)
void SetPreferredMaintenanceWindow(Aws::String &&value)
const Aws::String & GetNotificationTopicArn() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateClusterRequest & WithNotificationTopicArn(const char *value)
void SetDescription(const Aws::String &value)
CreateClusterRequest & WithClusterName(const char *value)
CreateClusterRequest & AddSecurityGroupIds(const Aws::String &value)
CreateClusterRequest & WithPreferredMaintenanceWindow(const char *value)
CreateClusterRequest & AddAvailabilityZones(const Aws::String &value)
CreateClusterRequest & WithDescription(const Aws::String &value)
CreateClusterRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateClusterRequest & WithSubnetGroupName(Aws::String &&value)
const Aws::String & GetParameterGroupName() const
CreateClusterRequest & WithSSESpecification(const SSESpecification &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector