AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 JobType GetJobType() const { return m_jobType; }
57 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
58 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
59 inline CreateClusterRequest& WithJobType(JobType value) { SetJobType(value); return *this;}
61
63
67 inline const JobResource& GetResources() const { return m_resources; }
68 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
69 template<typename ResourcesT = JobResource>
70 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
71 template<typename ResourcesT = JobResource>
72 CreateClusterRequest& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
74
76
81 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
82 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
83 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
84 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value); }
85 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
86 CreateClusterRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value)); return *this;}
88
90
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 CreateClusterRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
106 inline const Aws::String& GetAddressId() const { return m_addressId; }
107 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
108 template<typename AddressIdT = Aws::String>
109 void SetAddressId(AddressIdT&& value) { m_addressIdHasBeenSet = true; m_addressId = std::forward<AddressIdT>(value); }
110 template<typename AddressIdT = Aws::String>
111 CreateClusterRequest& WithAddressId(AddressIdT&& value) { SetAddressId(std::forward<AddressIdT>(value)); return *this;}
113
115
121 inline const Aws::String& GetKmsKeyARN() const { return m_kmsKeyARN; }
122 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
123 template<typename KmsKeyARNT = Aws::String>
124 void SetKmsKeyARN(KmsKeyARNT&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::forward<KmsKeyARNT>(value); }
125 template<typename KmsKeyARNT = Aws::String>
126 CreateClusterRequest& WithKmsKeyARN(KmsKeyARNT&& value) { SetKmsKeyARN(std::forward<KmsKeyARNT>(value)); return *this;}
128
130
136 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
137 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
138 template<typename RoleARNT = Aws::String>
139 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
140 template<typename RoleARNT = Aws::String>
141 CreateClusterRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
143
145
154 inline SnowballType GetSnowballType() const { return m_snowballType; }
155 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
156 inline void SetSnowballType(SnowballType value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
159
161
182 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
183 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
184 inline void SetShippingOption(ShippingOption value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
187
189
193 inline const Notification& GetNotification() const { return m_notification; }
194 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
195 template<typename NotificationT = Notification>
196 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
197 template<typename NotificationT = Notification>
198 CreateClusterRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
200
202
206 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
207 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
208 template<typename ForwardingAddressIdT = Aws::String>
209 void SetForwardingAddressId(ForwardingAddressIdT&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value); }
210 template<typename ForwardingAddressIdT = Aws::String>
211 CreateClusterRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) { SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value)); return *this;}
213
215
218 inline const TaxDocuments& GetTaxDocuments() const { return m_taxDocuments; }
219 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
220 template<typename TaxDocumentsT = TaxDocuments>
221 void SetTaxDocuments(TaxDocumentsT&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::forward<TaxDocumentsT>(value); }
222 template<typename TaxDocumentsT = TaxDocuments>
223 CreateClusterRequest& WithTaxDocuments(TaxDocumentsT&& value) { SetTaxDocuments(std::forward<TaxDocumentsT>(value)); return *this;}
225
227
234 inline RemoteManagement GetRemoteManagement() const { return m_remoteManagement; }
235 inline bool RemoteManagementHasBeenSet() const { return m_remoteManagementHasBeenSet; }
236 inline void SetRemoteManagement(RemoteManagement value) { m_remoteManagementHasBeenSet = true; m_remoteManagement = value; }
239
241
245 inline int GetInitialClusterSize() const { return m_initialClusterSize; }
246 inline bool InitialClusterSizeHasBeenSet() const { return m_initialClusterSizeHasBeenSet; }
247 inline void SetInitialClusterSize(int value) { m_initialClusterSizeHasBeenSet = true; m_initialClusterSize = value; }
248 inline CreateClusterRequest& WithInitialClusterSize(int value) { SetInitialClusterSize(value); return *this;}
250
252
259 inline bool GetForceCreateJobs() const { return m_forceCreateJobs; }
260 inline bool ForceCreateJobsHasBeenSet() const { return m_forceCreateJobsHasBeenSet; }
261 inline void SetForceCreateJobs(bool value) { m_forceCreateJobsHasBeenSet = true; m_forceCreateJobs = value; }
262 inline CreateClusterRequest& WithForceCreateJobs(bool value) { SetForceCreateJobs(value); return *this;}
264
266
270 inline const Aws::Vector<Aws::String>& GetLongTermPricingIds() const { return m_longTermPricingIds; }
271 inline bool LongTermPricingIdsHasBeenSet() const { return m_longTermPricingIdsHasBeenSet; }
272 template<typename LongTermPricingIdsT = Aws::Vector<Aws::String>>
273 void SetLongTermPricingIds(LongTermPricingIdsT&& value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds = std::forward<LongTermPricingIdsT>(value); }
274 template<typename LongTermPricingIdsT = Aws::Vector<Aws::String>>
275 CreateClusterRequest& WithLongTermPricingIds(LongTermPricingIdsT&& value) { SetLongTermPricingIds(std::forward<LongTermPricingIdsT>(value)); return *this;}
276 template<typename LongTermPricingIdsT = Aws::String>
277 CreateClusterRequest& AddLongTermPricingIds(LongTermPricingIdsT&& value) { m_longTermPricingIdsHasBeenSet = true; m_longTermPricingIds.emplace_back(std::forward<LongTermPricingIdsT>(value)); return *this; }
279
281
290 inline SnowballCapacity GetSnowballCapacityPreference() const { return m_snowballCapacityPreference; }
291 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
292 inline void SetSnowballCapacityPreference(SnowballCapacity value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
295 private:
296
297 JobType m_jobType{JobType::NOT_SET};
298 bool m_jobTypeHasBeenSet = false;
299
300 JobResource m_resources;
301 bool m_resourcesHasBeenSet = false;
302
303 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
304 bool m_onDeviceServiceConfigurationHasBeenSet = false;
305
306 Aws::String m_description;
307 bool m_descriptionHasBeenSet = false;
308
309 Aws::String m_addressId;
310 bool m_addressIdHasBeenSet = false;
311
312 Aws::String m_kmsKeyARN;
313 bool m_kmsKeyARNHasBeenSet = false;
314
315 Aws::String m_roleARN;
316 bool m_roleARNHasBeenSet = false;
317
318 SnowballType m_snowballType{SnowballType::NOT_SET};
319 bool m_snowballTypeHasBeenSet = false;
320
321 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
322 bool m_shippingOptionHasBeenSet = false;
323
324 Notification m_notification;
325 bool m_notificationHasBeenSet = false;
326
327 Aws::String m_forwardingAddressId;
328 bool m_forwardingAddressIdHasBeenSet = false;
329
330 TaxDocuments m_taxDocuments;
331 bool m_taxDocumentsHasBeenSet = false;
332
334 bool m_remoteManagementHasBeenSet = false;
335
336 int m_initialClusterSize{0};
337 bool m_initialClusterSizeHasBeenSet = false;
338
339 bool m_forceCreateJobs{false};
340 bool m_forceCreateJobsHasBeenSet = false;
341
342 Aws::Vector<Aws::String> m_longTermPricingIds;
343 bool m_longTermPricingIdsHasBeenSet = false;
344
345 SnowballCapacity m_snowballCapacityPreference{SnowballCapacity::NOT_SET};
346 bool m_snowballCapacityPreferenceHasBeenSet = false;
347 };
348
349} // namespace Model
350} // namespace Snowball
351} // 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