AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobRequest.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/SnowballCapacity.h>
14#include <aws/snowball/model/ShippingOption.h>
15#include <aws/snowball/model/Notification.h>
16#include <aws/snowball/model/SnowballType.h>
17#include <aws/snowball/model/TaxDocuments.h>
18#include <aws/snowball/model/DeviceConfiguration.h>
19#include <aws/snowball/model/RemoteManagement.h>
20#include <aws/snowball/model/ImpactLevel.h>
21#include <aws/snowball/model/PickupDetails.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Snowball
27{
28namespace Model
29{
30
34 {
35 public:
36 AWS_SNOWBALL_API CreateJobRequest();
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
43
44 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
45
47
48
50
53 inline const JobType& GetJobType() const{ return m_jobType; }
54 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
55 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
56 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
57 inline CreateJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
58 inline CreateJobRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
60
62
72 inline const JobResource& GetResources() const{ return m_resources; }
73 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
74 inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
75 inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
76 inline CreateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
77 inline CreateJobRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
79
81
87 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_onDeviceServiceConfiguration; }
88 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
89 inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; }
90 inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); }
94
96
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline CreateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline CreateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline CreateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
114 inline const Aws::String& GetAddressId() const{ return m_addressId; }
115 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
116 inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
117 inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
118 inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
119 inline CreateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
120 inline CreateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
121 inline CreateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
123
125
131 inline const Aws::String& GetKmsKeyARN() const{ return m_kmsKeyARN; }
132 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
133 inline void SetKmsKeyARN(const Aws::String& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; }
134 inline void SetKmsKeyARN(Aws::String&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::move(value); }
135 inline void SetKmsKeyARN(const char* value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN.assign(value); }
136 inline CreateJobRequest& WithKmsKeyARN(const Aws::String& value) { SetKmsKeyARN(value); return *this;}
137 inline CreateJobRequest& WithKmsKeyARN(Aws::String&& value) { SetKmsKeyARN(std::move(value)); return *this;}
138 inline CreateJobRequest& WithKmsKeyARN(const char* value) { SetKmsKeyARN(value); return *this;}
140
142
148 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
149 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
150 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
151 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
152 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
153 inline CreateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
154 inline CreateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
155 inline CreateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
157
159
168 inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
169 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
170 inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
171 inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); }
175
177
190 inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
191 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
192 inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
193 inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
194 inline CreateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
195 inline CreateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
197
199
203 inline const Notification& GetNotification() const{ return m_notification; }
204 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
205 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
206 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
207 inline CreateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
208 inline CreateJobRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
210
212
217 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
218 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
219 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
220 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
221 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
222 inline CreateJobRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
223 inline CreateJobRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
224 inline CreateJobRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
226
228
242 inline const SnowballType& GetSnowballType() const{ return m_snowballType; }
243 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
244 inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
245 inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); }
246 inline CreateJobRequest& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;}
247 inline CreateJobRequest& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;}
249
251
255 inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
256 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
257 inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
258 inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
259 inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
260 inline CreateJobRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;}
261 inline CreateJobRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
262 inline CreateJobRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
264
266
269 inline const TaxDocuments& GetTaxDocuments() const{ return m_taxDocuments; }
270 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
271 inline void SetTaxDocuments(const TaxDocuments& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = value; }
272 inline void SetTaxDocuments(TaxDocuments&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::move(value); }
273 inline CreateJobRequest& WithTaxDocuments(const TaxDocuments& value) { SetTaxDocuments(value); return *this;}
274 inline CreateJobRequest& WithTaxDocuments(TaxDocuments&& value) { SetTaxDocuments(std::move(value)); return *this;}
276
278
286 inline const DeviceConfiguration& GetDeviceConfiguration() const{ return m_deviceConfiguration; }
287 inline bool DeviceConfigurationHasBeenSet() const { return m_deviceConfigurationHasBeenSet; }
288 inline void SetDeviceConfiguration(const DeviceConfiguration& value) { m_deviceConfigurationHasBeenSet = true; m_deviceConfiguration = value; }
289 inline void SetDeviceConfiguration(DeviceConfiguration&& value) { m_deviceConfigurationHasBeenSet = true; m_deviceConfiguration = std::move(value); }
291 inline CreateJobRequest& WithDeviceConfiguration(DeviceConfiguration&& value) { SetDeviceConfiguration(std::move(value)); return *this;}
293
295
303 inline const RemoteManagement& GetRemoteManagement() const{ return m_remoteManagement; }
304 inline bool RemoteManagementHasBeenSet() const { return m_remoteManagementHasBeenSet; }
305 inline void SetRemoteManagement(const RemoteManagement& value) { m_remoteManagementHasBeenSet = true; m_remoteManagement = value; }
306 inline void SetRemoteManagement(RemoteManagement&& value) { m_remoteManagementHasBeenSet = true; m_remoteManagement = std::move(value); }
307 inline CreateJobRequest& WithRemoteManagement(const RemoteManagement& value) { SetRemoteManagement(value); return *this;}
308 inline CreateJobRequest& WithRemoteManagement(RemoteManagement&& value) { SetRemoteManagement(std::move(value)); return *this;}
310
312
315 inline const Aws::String& GetLongTermPricingId() const{ return m_longTermPricingId; }
316 inline bool LongTermPricingIdHasBeenSet() const { return m_longTermPricingIdHasBeenSet; }
317 inline void SetLongTermPricingId(const Aws::String& value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId = value; }
318 inline void SetLongTermPricingId(Aws::String&& value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId = std::move(value); }
319 inline void SetLongTermPricingId(const char* value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId.assign(value); }
320 inline CreateJobRequest& WithLongTermPricingId(const Aws::String& value) { SetLongTermPricingId(value); return *this;}
321 inline CreateJobRequest& WithLongTermPricingId(Aws::String&& value) { SetLongTermPricingId(std::move(value)); return *this;}
322 inline CreateJobRequest& WithLongTermPricingId(const char* value) { SetLongTermPricingId(value); return *this;}
324
326
330 inline const ImpactLevel& GetImpactLevel() const{ return m_impactLevel; }
331 inline bool ImpactLevelHasBeenSet() const { return m_impactLevelHasBeenSet; }
332 inline void SetImpactLevel(const ImpactLevel& value) { m_impactLevelHasBeenSet = true; m_impactLevel = value; }
333 inline void SetImpactLevel(ImpactLevel&& value) { m_impactLevelHasBeenSet = true; m_impactLevel = std::move(value); }
334 inline CreateJobRequest& WithImpactLevel(const ImpactLevel& value) { SetImpactLevel(value); return *this;}
335 inline CreateJobRequest& WithImpactLevel(ImpactLevel&& value) { SetImpactLevel(std::move(value)); return *this;}
337
339
342 inline const PickupDetails& GetPickupDetails() const{ return m_pickupDetails; }
343 inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; }
344 inline void SetPickupDetails(const PickupDetails& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = value; }
345 inline void SetPickupDetails(PickupDetails&& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = std::move(value); }
346 inline CreateJobRequest& WithPickupDetails(const PickupDetails& value) { SetPickupDetails(value); return *this;}
347 inline CreateJobRequest& WithPickupDetails(PickupDetails&& value) { SetPickupDetails(std::move(value)); return *this;}
349 private:
350
351 JobType m_jobType;
352 bool m_jobTypeHasBeenSet = false;
353
354 JobResource m_resources;
355 bool m_resourcesHasBeenSet = false;
356
357 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
358 bool m_onDeviceServiceConfigurationHasBeenSet = false;
359
360 Aws::String m_description;
361 bool m_descriptionHasBeenSet = false;
362
363 Aws::String m_addressId;
364 bool m_addressIdHasBeenSet = false;
365
366 Aws::String m_kmsKeyARN;
367 bool m_kmsKeyARNHasBeenSet = false;
368
369 Aws::String m_roleARN;
370 bool m_roleARNHasBeenSet = false;
371
372 SnowballCapacity m_snowballCapacityPreference;
373 bool m_snowballCapacityPreferenceHasBeenSet = false;
374
375 ShippingOption m_shippingOption;
376 bool m_shippingOptionHasBeenSet = false;
377
378 Notification m_notification;
379 bool m_notificationHasBeenSet = false;
380
381 Aws::String m_clusterId;
382 bool m_clusterIdHasBeenSet = false;
383
384 SnowballType m_snowballType;
385 bool m_snowballTypeHasBeenSet = false;
386
387 Aws::String m_forwardingAddressId;
388 bool m_forwardingAddressIdHasBeenSet = false;
389
390 TaxDocuments m_taxDocuments;
391 bool m_taxDocumentsHasBeenSet = false;
392
393 DeviceConfiguration m_deviceConfiguration;
394 bool m_deviceConfigurationHasBeenSet = false;
395
396 RemoteManagement m_remoteManagement;
397 bool m_remoteManagementHasBeenSet = false;
398
399 Aws::String m_longTermPricingId;
400 bool m_longTermPricingIdHasBeenSet = false;
401
402 ImpactLevel m_impactLevel;
403 bool m_impactLevelHasBeenSet = false;
404
405 PickupDetails m_pickupDetails;
406 bool m_pickupDetailsHasBeenSet = false;
407 };
408
409} // namespace Model
410} // namespace Snowball
411} // namespace Aws
const SnowballCapacity & GetSnowballCapacityPreference() const
void SetShippingOption(ShippingOption &&value)
void SetSnowballCapacityPreference(SnowballCapacity &&value)
const ImpactLevel & GetImpactLevel() const
void SetSnowballType(SnowballType &&value)
CreateJobRequest & WithKmsKeyARN(Aws::String &&value)
CreateJobRequest & WithAddressId(const char *value)
CreateJobRequest & WithRoleARN(const char *value)
CreateJobRequest & WithShippingOption(const ShippingOption &value)
CreateJobRequest & WithKmsKeyARN(const char *value)
const TaxDocuments & GetTaxDocuments() const
CreateJobRequest & WithClusterId(const char *value)
void SetDeviceConfiguration(const DeviceConfiguration &value)
const Aws::String & GetAddressId() const
CreateJobRequest & WithKmsKeyARN(const Aws::String &value)
void SetResources(JobResource &&value)
CreateJobRequest & WithImpactLevel(const ImpactLevel &value)
void SetDescription(Aws::String &&value)
const Aws::String & GetForwardingAddressId() const
CreateJobRequest & WithSnowballType(SnowballType &&value)
void SetLongTermPricingId(const Aws::String &value)
void SetPickupDetails(const PickupDetails &value)
CreateJobRequest & WithDeviceConfiguration(DeviceConfiguration &&value)
CreateJobRequest & WithShippingOption(ShippingOption &&value)
void SetNotification(Notification &&value)
void SetRemoteManagement(const RemoteManagement &value)
CreateJobRequest & WithJobType(JobType &&value)
CreateJobRequest & WithForwardingAddressId(const Aws::String &value)
void SetForwardingAddressId(const char *value)
const DeviceConfiguration & GetDeviceConfiguration() const
const SnowballType & GetSnowballType() const
void SetLongTermPricingId(Aws::String &&value)
CreateJobRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
const Aws::String & GetClusterId() const
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
void SetForwardingAddressId(Aws::String &&value)
CreateJobRequest & WithRemoteManagement(RemoteManagement &&value)
void SetSnowballType(const SnowballType &value)
const Aws::String & GetDescription() const
void SetClusterId(const Aws::String &value)
CreateJobRequest & WithClusterId(const Aws::String &value)
void SetRoleARN(const Aws::String &value)
CreateJobRequest & WithResources(const JobResource &value)
void SetForwardingAddressId(const Aws::String &value)
void SetImpactLevel(const ImpactLevel &value)
CreateJobRequest & WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
void SetDeviceConfiguration(DeviceConfiguration &&value)
void SetRemoteManagement(RemoteManagement &&value)
void SetResources(const JobResource &value)
CreateJobRequest & WithLongTermPricingId(Aws::String &&value)
CreateJobRequest & WithPickupDetails(const PickupDetails &value)
CreateJobRequest & WithPickupDetails(PickupDetails &&value)
CreateJobRequest & WithForwardingAddressId(const char *value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
AWS_SNOWBALL_API Aws::String SerializePayload() const override
void SetDescription(const Aws::String &value)
CreateJobRequest & WithAddressId(Aws::String &&value)
CreateJobRequest & WithForwardingAddressId(Aws::String &&value)
const Aws::String & GetLongTermPricingId() const
CreateJobRequest & WithJobType(const JobType &value)
CreateJobRequest & WithRoleARN(Aws::String &&value)
CreateJobRequest & WithResources(JobResource &&value)
void SetSnowballCapacityPreference(const SnowballCapacity &value)
CreateJobRequest & WithDescription(Aws::String &&value)
CreateJobRequest & WithSnowballType(const SnowballType &value)
void SetShippingOption(const ShippingOption &value)
CreateJobRequest & WithRemoteManagement(const RemoteManagement &value)
void SetAddressId(const Aws::String &value)
CreateJobRequest & WithImpactLevel(ImpactLevel &&value)
CreateJobRequest & WithLongTermPricingId(const Aws::String &value)
CreateJobRequest & WithDescription(const Aws::String &value)
void SetLongTermPricingId(const char *value)
const JobResource & GetResources() const
CreateJobRequest & WithRoleARN(const Aws::String &value)
const Notification & GetNotification() const
const RemoteManagement & GetRemoteManagement() const
CreateJobRequest & WithTaxDocuments(TaxDocuments &&value)
void SetKmsKeyARN(const Aws::String &value)
const ShippingOption & GetShippingOption() const
const Aws::String & GetKmsKeyARN() const
const Aws::String & GetRoleARN() const
CreateJobRequest & WithDescription(const char *value)
void SetJobType(const JobType &value)
void SetTaxDocuments(const TaxDocuments &value)
void SetNotification(const Notification &value)
CreateJobRequest & WithAddressId(const Aws::String &value)
CreateJobRequest & WithNotification(Notification &&value)
void SetTaxDocuments(TaxDocuments &&value)
CreateJobRequest & WithTaxDocuments(const TaxDocuments &value)
CreateJobRequest & WithNotification(const Notification &value)
CreateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateJobRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
CreateJobRequest & WithClusterId(Aws::String &&value)
CreateJobRequest & WithDeviceConfiguration(const DeviceConfiguration &value)
const PickupDetails & GetPickupDetails() const
void SetPickupDetails(PickupDetails &&value)
CreateJobRequest & WithLongTermPricingId(const char *value)
void SetImpactLevel(ImpactLevel &&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