AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/snowball/SnowballRequest.h>
10#include <aws/snowball/Snowball_EXPORTS.h>
11#include <aws/snowball/model/JobResource.h>
12#include <aws/snowball/model/JobType.h>
13#include <aws/snowball/model/Notification.h>
14#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
15#include <aws/snowball/model/RemoteManagement.h>
16#include <aws/snowball/model/ShippingOption.h>
17#include <aws/snowball/model/SnowballCapacity.h>
18#include <aws/snowball/model/SnowballType.h>
19#include <aws/snowball/model/TaxDocuments.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Snowball {
25namespace Model {
26
30 public:
31 AWS_SNOWBALL_API CreateClusterRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
38
39 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
40
42
44
52 inline JobType GetJobType() const { return m_jobType; }
53 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
54 inline void SetJobType(JobType value) {
55 m_jobTypeHasBeenSet = true;
56 m_jobType = value;
57 }
59 SetJobType(value);
60 return *this;
61 }
63
65
69 inline const JobResource& GetResources() const { return m_resources; }
70 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
71 template <typename ResourcesT = JobResource>
72 void SetResources(ResourcesT&& value) {
73 m_resourcesHasBeenSet = true;
74 m_resources = std::forward<ResourcesT>(value);
75 }
76 template <typename ResourcesT = JobResource>
77 CreateClusterRequest& WithResources(ResourcesT&& value) {
78 SetResources(std::forward<ResourcesT>(value));
79 return *this;
80 }
82
84
89 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
90 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
91 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
92 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
93 m_onDeviceServiceConfigurationHasBeenSet = true;
94 m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value);
95 }
96 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
97 CreateClusterRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
98 SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 CreateClusterRequest& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetAddressId() const { return m_addressId; }
127 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
128 template <typename AddressIdT = Aws::String>
129 void SetAddressId(AddressIdT&& value) {
130 m_addressIdHasBeenSet = true;
131 m_addressId = std::forward<AddressIdT>(value);
132 }
133 template <typename AddressIdT = Aws::String>
134 CreateClusterRequest& WithAddressId(AddressIdT&& value) {
135 SetAddressId(std::forward<AddressIdT>(value));
136 return *this;
137 }
139
141
147 inline const Aws::String& GetKmsKeyARN() const { return m_kmsKeyARN; }
148 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
149 template <typename KmsKeyARNT = Aws::String>
150 void SetKmsKeyARN(KmsKeyARNT&& value) {
151 m_kmsKeyARNHasBeenSet = true;
152 m_kmsKeyARN = std::forward<KmsKeyARNT>(value);
153 }
154 template <typename KmsKeyARNT = Aws::String>
155 CreateClusterRequest& WithKmsKeyARN(KmsKeyARNT&& value) {
156 SetKmsKeyARN(std::forward<KmsKeyARNT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
169 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
170 template <typename RoleARNT = Aws::String>
171 void SetRoleARN(RoleARNT&& value) {
172 m_roleARNHasBeenSet = true;
173 m_roleARN = std::forward<RoleARNT>(value);
174 }
175 template <typename RoleARNT = Aws::String>
177 SetRoleARN(std::forward<RoleARNT>(value));
178 return *this;
179 }
181
183
192 inline SnowballType GetSnowballType() const { return m_snowballType; }
193 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
194 inline void SetSnowballType(SnowballType value) {
195 m_snowballTypeHasBeenSet = true;
196 m_snowballType = value;
197 }
199 SetSnowballType(value);
200 return *this;
201 }
203
205
226 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
227 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
229 m_shippingOptionHasBeenSet = true;
230 m_shippingOption = value;
231 }
233 SetShippingOption(value);
234 return *this;
235 }
237
239
243 inline const Notification& GetNotification() const { return m_notification; }
244 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
245 template <typename NotificationT = Notification>
246 void SetNotification(NotificationT&& value) {
247 m_notificationHasBeenSet = true;
248 m_notification = std::forward<NotificationT>(value);
249 }
250 template <typename NotificationT = Notification>
251 CreateClusterRequest& WithNotification(NotificationT&& value) {
252 SetNotification(std::forward<NotificationT>(value));
253 return *this;
254 }
256
258
262 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
263 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
264 template <typename ForwardingAddressIdT = Aws::String>
265 void SetForwardingAddressId(ForwardingAddressIdT&& value) {
266 m_forwardingAddressIdHasBeenSet = true;
267 m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value);
268 }
269 template <typename ForwardingAddressIdT = Aws::String>
270 CreateClusterRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) {
271 SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value));
272 return *this;
273 }
275
277
280 inline const TaxDocuments& GetTaxDocuments() const { return m_taxDocuments; }
281 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
282 template <typename TaxDocumentsT = TaxDocuments>
283 void SetTaxDocuments(TaxDocumentsT&& value) {
284 m_taxDocumentsHasBeenSet = true;
285 m_taxDocuments = std::forward<TaxDocumentsT>(value);
286 }
287 template <typename TaxDocumentsT = TaxDocuments>
288 CreateClusterRequest& WithTaxDocuments(TaxDocumentsT&& value) {
289 SetTaxDocuments(std::forward<TaxDocumentsT>(value));
290 return *this;
291 }
293
295
302 inline RemoteManagement GetRemoteManagement() const { return m_remoteManagement; }
303 inline bool RemoteManagementHasBeenSet() const { return m_remoteManagementHasBeenSet; }
305 m_remoteManagementHasBeenSet = true;
306 m_remoteManagement = value;
307 }
309 SetRemoteManagement(value);
310 return *this;
311 }
313
315
319 inline int GetInitialClusterSize() const { return m_initialClusterSize; }
320 inline bool InitialClusterSizeHasBeenSet() const { return m_initialClusterSizeHasBeenSet; }
321 inline void SetInitialClusterSize(int value) {
322 m_initialClusterSizeHasBeenSet = true;
323 m_initialClusterSize = value;
324 }
327 return *this;
328 }
330
332
339 inline bool GetForceCreateJobs() const { return m_forceCreateJobs; }
340 inline bool ForceCreateJobsHasBeenSet() const { return m_forceCreateJobsHasBeenSet; }
341 inline void SetForceCreateJobs(bool value) {
342 m_forceCreateJobsHasBeenSet = true;
343 m_forceCreateJobs = value;
344 }
346 SetForceCreateJobs(value);
347 return *this;
348 }
350
352
356 inline const Aws::Vector<Aws::String>& GetLongTermPricingIds() const { return m_longTermPricingIds; }
357 inline bool LongTermPricingIdsHasBeenSet() const { return m_longTermPricingIdsHasBeenSet; }
358 template <typename LongTermPricingIdsT = Aws::Vector<Aws::String>>
359 void SetLongTermPricingIds(LongTermPricingIdsT&& value) {
360 m_longTermPricingIdsHasBeenSet = true;
361 m_longTermPricingIds = std::forward<LongTermPricingIdsT>(value);
362 }
363 template <typename LongTermPricingIdsT = Aws::Vector<Aws::String>>
364 CreateClusterRequest& WithLongTermPricingIds(LongTermPricingIdsT&& value) {
365 SetLongTermPricingIds(std::forward<LongTermPricingIdsT>(value));
366 return *this;
367 }
368 template <typename LongTermPricingIdsT = Aws::String>
369 CreateClusterRequest& AddLongTermPricingIds(LongTermPricingIdsT&& value) {
370 m_longTermPricingIdsHasBeenSet = true;
371 m_longTermPricingIds.emplace_back(std::forward<LongTermPricingIdsT>(value));
372 return *this;
373 }
375
377
386 inline SnowballCapacity GetSnowballCapacityPreference() const { return m_snowballCapacityPreference; }
387 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
389 m_snowballCapacityPreferenceHasBeenSet = true;
390 m_snowballCapacityPreference = value;
391 }
394 return *this;
395 }
397 private:
398 JobType m_jobType{JobType::NOT_SET};
399 bool m_jobTypeHasBeenSet = false;
400
401 JobResource m_resources;
402 bool m_resourcesHasBeenSet = false;
403
404 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
405 bool m_onDeviceServiceConfigurationHasBeenSet = false;
406
407 Aws::String m_description;
408 bool m_descriptionHasBeenSet = false;
409
410 Aws::String m_addressId;
411 bool m_addressIdHasBeenSet = false;
412
413 Aws::String m_kmsKeyARN;
414 bool m_kmsKeyARNHasBeenSet = false;
415
416 Aws::String m_roleARN;
417 bool m_roleARNHasBeenSet = false;
418
419 SnowballType m_snowballType{SnowballType::NOT_SET};
420 bool m_snowballTypeHasBeenSet = false;
421
422 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
423 bool m_shippingOptionHasBeenSet = false;
424
425 Notification m_notification;
426 bool m_notificationHasBeenSet = false;
427
428 Aws::String m_forwardingAddressId;
429 bool m_forwardingAddressIdHasBeenSet = false;
430
431 TaxDocuments m_taxDocuments;
432 bool m_taxDocumentsHasBeenSet = false;
433
435 bool m_remoteManagementHasBeenSet = false;
436
437 int m_initialClusterSize{0};
438 bool m_initialClusterSizeHasBeenSet = false;
439
440 bool m_forceCreateJobs{false};
441 bool m_forceCreateJobsHasBeenSet = false;
442
443 Aws::Vector<Aws::String> m_longTermPricingIds;
444 bool m_longTermPricingIdsHasBeenSet = false;
445
446 SnowballCapacity m_snowballCapacityPreference{SnowballCapacity::NOT_SET};
447 bool m_snowballCapacityPreferenceHasBeenSet = false;
448};
449
450} // namespace Model
451} // namespace Snowball
452} // namespace Aws
void SetForwardingAddressId(ForwardingAddressIdT &&value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateClusterRequest & WithAddressId(AddressIdT &&value)
CreateClusterRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
AWS_SNOWBALL_API CreateClusterRequest()=default
CreateClusterRequest & WithDescription(DescriptionT &&value)
CreateClusterRequest & WithTaxDocuments(TaxDocumentsT &&value)
void SetLongTermPricingIds(LongTermPricingIdsT &&value)
CreateClusterRequest & WithJobType(JobType value)
CreateClusterRequest & WithNotification(NotificationT &&value)
const Aws::Vector< Aws::String > & GetLongTermPricingIds() const
virtual const char * GetServiceRequestName() const override
CreateClusterRequest & WithSnowballType(SnowballType value)
CreateClusterRequest & WithLongTermPricingIds(LongTermPricingIdsT &&value)
CreateClusterRequest & WithRoleARN(RoleARNT &&value)
CreateClusterRequest & WithRemoteManagement(RemoteManagement value)
AWS_SNOWBALL_API Aws::String SerializePayload() const override
CreateClusterRequest & WithForceCreateJobs(bool value)
void SetSnowballCapacityPreference(SnowballCapacity value)
CreateClusterRequest & WithKmsKeyARN(KmsKeyARNT &&value)
CreateClusterRequest & WithInitialClusterSize(int value)
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
CreateClusterRequest & WithForwardingAddressId(ForwardingAddressIdT &&value)
CreateClusterRequest & AddLongTermPricingIds(LongTermPricingIdsT &&value)
CreateClusterRequest & WithSnowballCapacityPreference(SnowballCapacity value)
CreateClusterRequest & WithResources(ResourcesT &&value)
CreateClusterRequest & WithShippingOption(ShippingOption value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
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