AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snowball/SnowballRequest.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/DeviceConfiguration.h>
11#include <aws/snowball/model/ImpactLevel.h>
12#include <aws/snowball/model/JobResource.h>
13#include <aws/snowball/model/JobType.h>
14#include <aws/snowball/model/Notification.h>
15#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
16#include <aws/snowball/model/PickupDetails.h>
17#include <aws/snowball/model/RemoteManagement.h>
18#include <aws/snowball/model/ShippingOption.h>
19#include <aws/snowball/model/SnowballCapacity.h>
20#include <aws/snowball/model/SnowballType.h>
21#include <aws/snowball/model/TaxDocuments.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Snowball {
27namespace Model {
28
32 public:
33 AWS_SNOWBALL_API CreateJobRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
40
41 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
42
44
46
49 inline JobType GetJobType() const { return m_jobType; }
50 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
51 inline void SetJobType(JobType value) {
52 m_jobTypeHasBeenSet = true;
53 m_jobType = value;
54 }
56 SetJobType(value);
57 return *this;
58 }
60
62
72 inline const JobResource& GetResources() const { return m_resources; }
73 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
74 template <typename ResourcesT = JobResource>
75 void SetResources(ResourcesT&& value) {
76 m_resourcesHasBeenSet = true;
77 m_resources = std::forward<ResourcesT>(value);
78 }
79 template <typename ResourcesT = JobResource>
80 CreateJobRequest& WithResources(ResourcesT&& value) {
81 SetResources(std::forward<ResourcesT>(value));
82 return *this;
83 }
85
87
93 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
94 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
95 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
96 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
97 m_onDeviceServiceConfigurationHasBeenSet = true;
98 m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value);
99 }
100 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
101 CreateJobRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
102 SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template <typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) {
116 m_descriptionHasBeenSet = true;
117 m_description = std::forward<DescriptionT>(value);
118 }
119 template <typename DescriptionT = Aws::String>
120 CreateJobRequest& WithDescription(DescriptionT&& value) {
121 SetDescription(std::forward<DescriptionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetAddressId() const { return m_addressId; }
131 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
132 template <typename AddressIdT = Aws::String>
133 void SetAddressId(AddressIdT&& value) {
134 m_addressIdHasBeenSet = true;
135 m_addressId = std::forward<AddressIdT>(value);
136 }
137 template <typename AddressIdT = Aws::String>
138 CreateJobRequest& WithAddressId(AddressIdT&& value) {
139 SetAddressId(std::forward<AddressIdT>(value));
140 return *this;
141 }
143
145
151 inline const Aws::String& GetKmsKeyARN() const { return m_kmsKeyARN; }
152 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
153 template <typename KmsKeyARNT = Aws::String>
154 void SetKmsKeyARN(KmsKeyARNT&& value) {
155 m_kmsKeyARNHasBeenSet = true;
156 m_kmsKeyARN = std::forward<KmsKeyARNT>(value);
157 }
158 template <typename KmsKeyARNT = Aws::String>
159 CreateJobRequest& WithKmsKeyARN(KmsKeyARNT&& value) {
160 SetKmsKeyARN(std::forward<KmsKeyARNT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
173 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
174 template <typename RoleARNT = Aws::String>
175 void SetRoleARN(RoleARNT&& value) {
176 m_roleARNHasBeenSet = true;
177 m_roleARN = std::forward<RoleARNT>(value);
178 }
179 template <typename RoleARNT = Aws::String>
180 CreateJobRequest& WithRoleARN(RoleARNT&& value) {
181 SetRoleARN(std::forward<RoleARNT>(value));
182 return *this;
183 }
185
187
196 inline SnowballCapacity GetSnowballCapacityPreference() const { return m_snowballCapacityPreference; }
197 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
199 m_snowballCapacityPreferenceHasBeenSet = true;
200 m_snowballCapacityPreference = value;
201 }
204 return *this;
205 }
207
209
222 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
223 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
225 m_shippingOptionHasBeenSet = true;
226 m_shippingOption = value;
227 }
229 SetShippingOption(value);
230 return *this;
231 }
233
235
239 inline const Notification& GetNotification() const { return m_notification; }
240 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
241 template <typename NotificationT = Notification>
242 void SetNotification(NotificationT&& value) {
243 m_notificationHasBeenSet = true;
244 m_notification = std::forward<NotificationT>(value);
245 }
246 template <typename NotificationT = Notification>
247 CreateJobRequest& WithNotification(NotificationT&& value) {
248 SetNotification(std::forward<NotificationT>(value));
249 return *this;
250 }
252
254
259 inline const Aws::String& GetClusterId() const { return m_clusterId; }
260 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
261 template <typename ClusterIdT = Aws::String>
262 void SetClusterId(ClusterIdT&& value) {
263 m_clusterIdHasBeenSet = true;
264 m_clusterId = std::forward<ClusterIdT>(value);
265 }
266 template <typename ClusterIdT = Aws::String>
267 CreateJobRequest& WithClusterId(ClusterIdT&& value) {
268 SetClusterId(std::forward<ClusterIdT>(value));
269 return *this;
270 }
272
274
288 inline SnowballType GetSnowballType() const { return m_snowballType; }
289 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
290 inline void SetSnowballType(SnowballType value) {
291 m_snowballTypeHasBeenSet = true;
292 m_snowballType = value;
293 }
295 SetSnowballType(value);
296 return *this;
297 }
299
301
305 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
306 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
307 template <typename ForwardingAddressIdT = Aws::String>
308 void SetForwardingAddressId(ForwardingAddressIdT&& value) {
309 m_forwardingAddressIdHasBeenSet = true;
310 m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value);
311 }
312 template <typename ForwardingAddressIdT = Aws::String>
313 CreateJobRequest& WithForwardingAddressId(ForwardingAddressIdT&& value) {
314 SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value));
315 return *this;
316 }
318
320
323 inline const TaxDocuments& GetTaxDocuments() const { return m_taxDocuments; }
324 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
325 template <typename TaxDocumentsT = TaxDocuments>
326 void SetTaxDocuments(TaxDocumentsT&& value) {
327 m_taxDocumentsHasBeenSet = true;
328 m_taxDocuments = std::forward<TaxDocumentsT>(value);
329 }
330 template <typename TaxDocumentsT = TaxDocuments>
331 CreateJobRequest& WithTaxDocuments(TaxDocumentsT&& value) {
332 SetTaxDocuments(std::forward<TaxDocumentsT>(value));
333 return *this;
334 }
336
338
346 inline const DeviceConfiguration& GetDeviceConfiguration() const { return m_deviceConfiguration; }
347 inline bool DeviceConfigurationHasBeenSet() const { return m_deviceConfigurationHasBeenSet; }
348 template <typename DeviceConfigurationT = DeviceConfiguration>
349 void SetDeviceConfiguration(DeviceConfigurationT&& value) {
350 m_deviceConfigurationHasBeenSet = true;
351 m_deviceConfiguration = std::forward<DeviceConfigurationT>(value);
352 }
353 template <typename DeviceConfigurationT = DeviceConfiguration>
354 CreateJobRequest& WithDeviceConfiguration(DeviceConfigurationT&& value) {
355 SetDeviceConfiguration(std::forward<DeviceConfigurationT>(value));
356 return *this;
357 }
359
361
369 inline RemoteManagement GetRemoteManagement() const { return m_remoteManagement; }
370 inline bool RemoteManagementHasBeenSet() const { return m_remoteManagementHasBeenSet; }
372 m_remoteManagementHasBeenSet = true;
373 m_remoteManagement = value;
374 }
376 SetRemoteManagement(value);
377 return *this;
378 }
380
382
385 inline const Aws::String& GetLongTermPricingId() const { return m_longTermPricingId; }
386 inline bool LongTermPricingIdHasBeenSet() const { return m_longTermPricingIdHasBeenSet; }
387 template <typename LongTermPricingIdT = Aws::String>
388 void SetLongTermPricingId(LongTermPricingIdT&& value) {
389 m_longTermPricingIdHasBeenSet = true;
390 m_longTermPricingId = std::forward<LongTermPricingIdT>(value);
391 }
392 template <typename LongTermPricingIdT = Aws::String>
393 CreateJobRequest& WithLongTermPricingId(LongTermPricingIdT&& value) {
394 SetLongTermPricingId(std::forward<LongTermPricingIdT>(value));
395 return *this;
396 }
398
400
404 inline ImpactLevel GetImpactLevel() const { return m_impactLevel; }
405 inline bool ImpactLevelHasBeenSet() const { return m_impactLevelHasBeenSet; }
406 inline void SetImpactLevel(ImpactLevel value) {
407 m_impactLevelHasBeenSet = true;
408 m_impactLevel = value;
409 }
411 SetImpactLevel(value);
412 return *this;
413 }
415
417
420 inline const PickupDetails& GetPickupDetails() const { return m_pickupDetails; }
421 inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; }
422 template <typename PickupDetailsT = PickupDetails>
423 void SetPickupDetails(PickupDetailsT&& value) {
424 m_pickupDetailsHasBeenSet = true;
425 m_pickupDetails = std::forward<PickupDetailsT>(value);
426 }
427 template <typename PickupDetailsT = PickupDetails>
428 CreateJobRequest& WithPickupDetails(PickupDetailsT&& value) {
429 SetPickupDetails(std::forward<PickupDetailsT>(value));
430 return *this;
431 }
433 private:
434 JobType m_jobType{JobType::NOT_SET};
435
436 JobResource m_resources;
437
438 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
439
440 Aws::String m_description;
441
442 Aws::String m_addressId;
443
444 Aws::String m_kmsKeyARN;
445
446 Aws::String m_roleARN;
447
448 SnowballCapacity m_snowballCapacityPreference{SnowballCapacity::NOT_SET};
449
450 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
451
452 Notification m_notification;
453
454 Aws::String m_clusterId;
455
456 SnowballType m_snowballType{SnowballType::NOT_SET};
457
458 Aws::String m_forwardingAddressId;
459
460 TaxDocuments m_taxDocuments;
461
462 DeviceConfiguration m_deviceConfiguration;
463
465
466 Aws::String m_longTermPricingId;
467
468 ImpactLevel m_impactLevel{ImpactLevel::NOT_SET};
469
470 PickupDetails m_pickupDetails;
471 bool m_jobTypeHasBeenSet = false;
472 bool m_resourcesHasBeenSet = false;
473 bool m_onDeviceServiceConfigurationHasBeenSet = false;
474 bool m_descriptionHasBeenSet = false;
475 bool m_addressIdHasBeenSet = false;
476 bool m_kmsKeyARNHasBeenSet = false;
477 bool m_roleARNHasBeenSet = false;
478 bool m_snowballCapacityPreferenceHasBeenSet = false;
479 bool m_shippingOptionHasBeenSet = false;
480 bool m_notificationHasBeenSet = false;
481 bool m_clusterIdHasBeenSet = false;
482 bool m_snowballTypeHasBeenSet = false;
483 bool m_forwardingAddressIdHasBeenSet = false;
484 bool m_taxDocumentsHasBeenSet = false;
485 bool m_deviceConfigurationHasBeenSet = false;
486 bool m_remoteManagementHasBeenSet = false;
487 bool m_longTermPricingIdHasBeenSet = false;
488 bool m_impactLevelHasBeenSet = false;
489 bool m_pickupDetailsHasBeenSet = false;
490};
491
492} // namespace Model
493} // namespace Snowball
494} // namespace Aws
CreateJobRequest & WithRemoteManagement(RemoteManagement value)
void SetTaxDocuments(TaxDocumentsT &&value)
const TaxDocuments & GetTaxDocuments() const
CreateJobRequest & WithClusterId(ClusterIdT &&value)
AWS_SNOWBALL_API CreateJobRequest()=default
const Aws::String & GetAddressId() const
CreateJobRequest & WithResources(ResourcesT &&value)
CreateJobRequest & WithSnowballType(SnowballType value)
SnowballCapacity GetSnowballCapacityPreference() const
const Aws::String & GetForwardingAddressId() const
CreateJobRequest & WithShippingOption(ShippingOption value)
void SetForwardingAddressId(ForwardingAddressIdT &&value)
void SetShippingOption(ShippingOption value)
void SetNotification(NotificationT &&value)
const DeviceConfiguration & GetDeviceConfiguration() const
const Aws::String & GetClusterId() const
CreateJobRequest & WithSnowballCapacityPreference(SnowballCapacity value)
CreateJobRequest & WithKmsKeyARN(KmsKeyARNT &&value)
void SetPickupDetails(PickupDetailsT &&value)
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
const Aws::String & GetDescription() const
void SetSnowballCapacityPreference(SnowballCapacity value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
CreateJobRequest & WithDeviceConfiguration(DeviceConfigurationT &&value)
AWS_SNOWBALL_API Aws::String SerializePayload() const override
CreateJobRequest & WithLongTermPricingId(LongTermPricingIdT &&value)
CreateJobRequest & WithForwardingAddressId(ForwardingAddressIdT &&value)
CreateJobRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetLongTermPricingId() const
CreateJobRequest & WithRoleARN(RoleARNT &&value)
const JobResource & GetResources() const
CreateJobRequest & WithImpactLevel(ImpactLevel value)
const Notification & GetNotification() const
CreateJobRequest & WithAddressId(AddressIdT &&value)
const Aws::String & GetKmsKeyARN() const
void SetRemoteManagement(RemoteManagement value)
const Aws::String & GetRoleARN() const
void SetDeviceConfiguration(DeviceConfigurationT &&value)
RemoteManagement GetRemoteManagement() const
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateJobRequest & WithPickupDetails(PickupDetailsT &&value)
void SetLongTermPricingId(LongTermPricingIdT &&value)
void SetDescription(DescriptionT &&value)
CreateJobRequest & WithTaxDocuments(TaxDocumentsT &&value)
const PickupDetails & GetPickupDetails() const
CreateJobRequest & WithNotification(NotificationT &&value)
CreateJobRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
CreateJobRequest & WithJobType(JobType value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String