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/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/snowball/model/JobType.h>
10#include <aws/snowball/model/JobResource.h>
11#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/snowball/model/SnowballType.h>
14#include <aws/snowball/model/ShippingOption.h>
15#include <aws/snowball/model/Notification.h>
16#include <aws/snowball/model/TaxDocuments.h>
17#include <aws/snowball/model/RemoteManagement.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/snowball/model/SnowballCapacity.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Snowball
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_SNOWBALL_API CreateClusterRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
41
42 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
43
45
46
48
56 inline const JobType& GetJobType() const{ return m_jobType; }
57 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
58 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
59 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
60 inline CreateClusterRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
61 inline CreateClusterRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
63
65
69 inline const JobResource& GetResources() const{ return m_resources; }
70 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
71 inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
72 inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
73 inline CreateClusterRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
74 inline CreateClusterRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
76
78
83 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_onDeviceServiceConfiguration; }
84 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
85 inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; }
86 inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); }
90
92
96 inline const Aws::String& GetDescription() const{ return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
100 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 inline CreateClusterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
102 inline CreateClusterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
103 inline CreateClusterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
105
107
110 inline const Aws::String& GetAddressId() const{ return m_addressId; }
111 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
112 inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
113 inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
114 inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
115 inline CreateClusterRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
116 inline CreateClusterRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
117 inline CreateClusterRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
119
121
127 inline const Aws::String& GetKmsKeyARN() const{ return m_kmsKeyARN; }
128 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
129 inline void SetKmsKeyARN(const Aws::String& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; }
130 inline void SetKmsKeyARN(Aws::String&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::move(value); }
131 inline void SetKmsKeyARN(const char* value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN.assign(value); }
132 inline CreateClusterRequest& WithKmsKeyARN(const Aws::String& value) { SetKmsKeyARN(value); return *this;}
133 inline CreateClusterRequest& WithKmsKeyARN(Aws::String&& value) { SetKmsKeyARN(std::move(value)); return *this;}
134 inline CreateClusterRequest& WithKmsKeyARN(const char* value) { SetKmsKeyARN(value); return *this;}
136
138
144 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
145 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
146 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
147 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
148 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
149 inline CreateClusterRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
150 inline CreateClusterRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
151 inline CreateClusterRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
153
155
164 inline const SnowballType& GetSnowballType() const{ return m_snowballType; }
165 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
166 inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
167 inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); }
168 inline CreateClusterRequest& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;}
169 inline CreateClusterRequest& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;}
171
173
194 inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
195 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
196 inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
197 inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
198 inline CreateClusterRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
199 inline CreateClusterRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
201
203
207 inline const Notification& GetNotification() const{ return m_notification; }
208 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
209 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
210 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
211 inline CreateClusterRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
212 inline CreateClusterRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
214
216
220 inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
221 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
222 inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
223 inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
224 inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
226 inline CreateClusterRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
227 inline CreateClusterRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
229
231
234 inline const TaxDocuments& GetTaxDocuments() const{ return m_taxDocuments; }
235 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
236 inline void SetTaxDocuments(const TaxDocuments& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = value; }
237 inline void SetTaxDocuments(TaxDocuments&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::move(value); }
238 inline CreateClusterRequest& WithTaxDocuments(const TaxDocuments& value) { SetTaxDocuments(value); return *this;}
239 inline CreateClusterRequest& WithTaxDocuments(TaxDocuments&& value) { SetTaxDocuments(std::move(value)); return *this;}
241
243
250 inline const RemoteManagement& GetRemoteManagement() const{ return m_remoteManagement; }
251 inline bool RemoteManagementHasBeenSet() const { return m_remoteManagementHasBeenSet; }
252 inline void SetRemoteManagement(const RemoteManagement& value) { m_remoteManagementHasBeenSet = true; m_remoteManagement = value; }
253 inline void SetRemoteManagement(RemoteManagement&& value) { m_remoteManagementHasBeenSet = true; m_remoteManagement = std::move(value); }
255 inline CreateClusterRequest& WithRemoteManagement(RemoteManagement&& value) { SetRemoteManagement(std::move(value)); return *this;}
257
259
263 inline int GetInitialClusterSize() const{ return m_initialClusterSize; }
264 inline bool InitialClusterSizeHasBeenSet() const { return m_initialClusterSizeHasBeenSet; }
265 inline void SetInitialClusterSize(int value) { m_initialClusterSizeHasBeenSet = true; m_initialClusterSize = value; }
266 inline CreateClusterRequest& WithInitialClusterSize(int value) { SetInitialClusterSize(value); return *this;}
268
270
277 inline bool GetForceCreateJobs() const{ return m_forceCreateJobs; }
278 inline bool ForceCreateJobsHasBeenSet() const { return m_forceCreateJobsHasBeenSet; }
279 inline void SetForceCreateJobs(bool value) { m_forceCreateJobsHasBeenSet = true; m_forceCreateJobs = value; }
280 inline CreateClusterRequest& WithForceCreateJobs(bool value) { SetForceCreateJobs(value); return *this;}
282
284
288 inline const Aws::Vector<Aws::String>& GetLongTermPricingIds() const{ return m_longTermPricingIds; }
289 inline bool LongTermPricingIdsHasBeenSet() const { return m_longTermPricingIdsHasBeenSet; }
290 inline void SetLongTermPricingIds(const Aws::Vector<Aws::String>& value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds = value; }
291 inline void SetLongTermPricingIds(Aws::Vector<Aws::String>&& value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds = std::move(value); }
294 inline CreateClusterRequest& AddLongTermPricingIds(const Aws::String& value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds.push_back(value); return *this; }
295 inline CreateClusterRequest& AddLongTermPricingIds(Aws::String&& value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds.push_back(std::move(value)); return *this; }
296 inline CreateClusterRequest& AddLongTermPricingIds(const char* value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds.push_back(value); return *this; }
298
300
309 inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
310 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
311 inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
312 inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); }
316 private:
317
318 JobType m_jobType;
319 bool m_jobTypeHasBeenSet = false;
320
321 JobResource m_resources;
322 bool m_resourcesHasBeenSet = false;
323
324 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
325 bool m_onDeviceServiceConfigurationHasBeenSet = false;
326
327 Aws::String m_description;
328 bool m_descriptionHasBeenSet = false;
329
330 Aws::String m_addressId;
331 bool m_addressIdHasBeenSet = false;
332
333 Aws::String m_kmsKeyARN;
334 bool m_kmsKeyARNHasBeenSet = false;
335
336 Aws::String m_roleARN;
337 bool m_roleARNHasBeenSet = false;
338
339 SnowballType m_snowballType;
340 bool m_snowballTypeHasBeenSet = false;
341
342 ShippingOption m_shippingOption;
343 bool m_shippingOptionHasBeenSet = false;
344
345 Notification m_notification;
346 bool m_notificationHasBeenSet = false;
347
348 Aws::String m_forwardingAddressId;
349 bool m_forwardingAddressIdHasBeenSet = false;
350
351 TaxDocuments m_taxDocuments;
352 bool m_taxDocumentsHasBeenSet = false;
353
354 RemoteManagement m_remoteManagement;
355 bool m_remoteManagementHasBeenSet = false;
356
357 int m_initialClusterSize;
358 bool m_initialClusterSizeHasBeenSet = false;
359
360 bool m_forceCreateJobs;
361 bool m_forceCreateJobsHasBeenSet = false;
362
363 Aws::Vector<Aws::String> m_longTermPricingIds;
364 bool m_longTermPricingIdsHasBeenSet = false;
365
366 SnowballCapacity m_snowballCapacityPreference;
367 bool m_snowballCapacityPreferenceHasBeenSet = false;
368 };
369
370} // namespace Model
371} // namespace Snowball
372} // namespace Aws
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
CreateClusterRequest & WithShippingOption(const ShippingOption &value)
void SetDescription(const Aws::String &value)
CreateClusterRequest & WithJobType(JobType &&value)
CreateClusterRequest & WithRoleARN(const Aws::String &value)
CreateClusterRequest & WithDescription(const char *value)
CreateClusterRequest & WithResources(JobResource &&value)
CreateClusterRequest & WithDescription(Aws::String &&value)
CreateClusterRequest & WithNotification(const Notification &value)
void SetResources(const JobResource &value)
CreateClusterRequest & WithNotification(Notification &&value)
CreateClusterRequest & AddLongTermPricingIds(const char *value)
void SetLongTermPricingIds(const Aws::Vector< Aws::String > &value)
CreateClusterRequest & WithForwardingAddressId(Aws::String &&value)
const SnowballCapacity & GetSnowballCapacityPreference() const
const Aws::Vector< Aws::String > & GetLongTermPricingIds() const
CreateClusterRequest & WithKmsKeyARN(Aws::String &&value)
void SetLongTermPricingIds(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithDescription(const Aws::String &value)
CreateClusterRequest & WithRoleARN(Aws::String &&value)
void SetShippingOption(const ShippingOption &value)
AWS_SNOWBALL_API Aws::String SerializePayload() const override
void SetSnowballType(const SnowballType &value)
CreateClusterRequest & WithKmsKeyARN(const char *value)
CreateClusterRequest & WithKmsKeyARN(const Aws::String &value)
CreateClusterRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
CreateClusterRequest & WithForwardingAddressId(const Aws::String &value)
CreateClusterRequest & WithSnowballType(const SnowballType &value)
void SetSnowballCapacityPreference(SnowballCapacity &&value)
CreateClusterRequest & WithForceCreateJobs(bool value)
CreateClusterRequest & WithForwardingAddressId(const char *value)
CreateClusterRequest & WithJobType(const JobType &value)
CreateClusterRequest & WithInitialClusterSize(int value)
CreateClusterRequest & WithTaxDocuments(const TaxDocuments &value)
void SetNotification(const Notification &value)
CreateClusterRequest & WithAddressId(Aws::String &&value)
CreateClusterRequest & WithShippingOption(ShippingOption &&value)
CreateClusterRequest & AddLongTermPricingIds(Aws::String &&value)
void SetRemoteManagement(const RemoteManagement &value)
void SetForwardingAddressId(const Aws::String &value)
CreateClusterRequest & WithAddressId(const Aws::String &value)
const ShippingOption & GetShippingOption() const
CreateClusterRequest & WithTaxDocuments(TaxDocuments &&value)
CreateClusterRequest & WithSnowballType(SnowballType &&value)
void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
void SetTaxDocuments(const TaxDocuments &value)
CreateClusterRequest & WithLongTermPricingIds(const Aws::Vector< Aws::String > &value)
void SetSnowballCapacityPreference(const SnowballCapacity &value)
CreateClusterRequest & AddLongTermPricingIds(const Aws::String &value)
CreateClusterRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
CreateClusterRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
CreateClusterRequest & WithLongTermPricingIds(Aws::Vector< Aws::String > &&value)
CreateClusterRequest & WithRemoteManagement(RemoteManagement &&value)
CreateClusterRequest & WithAddressId(const char *value)
void SetRemoteManagement(RemoteManagement &&value)
CreateClusterRequest & WithResources(const JobResource &value)
const RemoteManagement & GetRemoteManagement() const
CreateClusterRequest & WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
CreateClusterRequest & WithRemoteManagement(const RemoteManagement &value)
CreateClusterRequest & WithRoleARN(const char *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