AWS SDK for C++  1.8.71
AWS SDK for C++
CreateJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
18 #include <utility>
19 
20 namespace Aws
21 {
22 namespace Snowball
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
48  inline const JobType& GetJobType() const{ return m_jobType; }
49 
53  inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
54 
58  inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
59 
63  inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
64 
68  inline CreateJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
69 
73  inline CreateJobRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
74 
75 
86  inline const JobResource& GetResources() const{ return m_resources; }
87 
98  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
99 
110  inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
111 
122  inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
123 
134  inline CreateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
135 
146  inline CreateJobRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
147 
148 
153  inline const Aws::String& GetDescription() const{ return m_description; }
154 
159  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
160 
165  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
166 
171  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
172 
177  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
178 
183  inline CreateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
184 
189  inline CreateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
190 
195  inline CreateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
196 
197 
201  inline const Aws::String& GetAddressId() const{ return m_addressId; }
202 
206  inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
207 
211  inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
212 
216  inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
217 
221  inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
222 
226  inline CreateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
227 
231  inline CreateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
232 
236  inline CreateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
237 
238 
245  inline const Aws::String& GetKmsKeyARN() const{ return m_kmsKeyARN; }
246 
253  inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
254 
261  inline void SetKmsKeyARN(const Aws::String& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; }
262 
269  inline void SetKmsKeyARN(Aws::String&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::move(value); }
270 
277  inline void SetKmsKeyARN(const char* value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN.assign(value); }
278 
285  inline CreateJobRequest& WithKmsKeyARN(const Aws::String& value) { SetKmsKeyARN(value); return *this;}
286 
293  inline CreateJobRequest& WithKmsKeyARN(Aws::String&& value) { SetKmsKeyARN(std::move(value)); return *this;}
294 
301  inline CreateJobRequest& WithKmsKeyARN(const char* value) { SetKmsKeyARN(value); return *this;}
302 
303 
310  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
311 
318  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
319 
326  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
327 
334  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
335 
342  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
343 
350  inline CreateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
351 
358  inline CreateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
359 
366  inline CreateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
367 
368 
374  inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
375 
381  inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
382 
388  inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
389 
395  inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); }
396 
402  inline CreateJobRequest& WithSnowballCapacityPreference(const SnowballCapacity& value) { SetSnowballCapacityPreference(value); return *this;}
403 
409  inline CreateJobRequest& WithSnowballCapacityPreference(SnowballCapacity&& value) { SetSnowballCapacityPreference(std::move(value)); return *this;}
410 
411 
425  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
426 
440  inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
441 
455  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
456 
470  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
471 
485  inline CreateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
486 
500  inline CreateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
501 
502 
507  inline const Notification& GetNotification() const{ return m_notification; }
508 
513  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
514 
519  inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
520 
525  inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
526 
531  inline CreateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
532 
537  inline CreateJobRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
538 
539 
545  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
546 
552  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
553 
559  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
560 
566  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
567 
573  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
574 
580  inline CreateJobRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
581 
587  inline CreateJobRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
588 
594  inline CreateJobRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
595 
596 
606  inline const SnowballType& GetSnowballType() const{ return m_snowballType; }
607 
617  inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
618 
628  inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
629 
639  inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); }
640 
650  inline CreateJobRequest& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;}
651 
661  inline CreateJobRequest& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;}
662 
663 
668  inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
669 
674  inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
675 
680  inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
681 
686  inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
687 
692  inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
693 
698  inline CreateJobRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;}
699 
704  inline CreateJobRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
705 
710  inline CreateJobRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
711 
712 
716  inline const TaxDocuments& GetTaxDocuments() const{ return m_taxDocuments; }
717 
721  inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
722 
726  inline void SetTaxDocuments(const TaxDocuments& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = value; }
727 
731  inline void SetTaxDocuments(TaxDocuments&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::move(value); }
732 
736  inline CreateJobRequest& WithTaxDocuments(const TaxDocuments& value) { SetTaxDocuments(value); return *this;}
737 
741  inline CreateJobRequest& WithTaxDocuments(TaxDocuments&& value) { SetTaxDocuments(std::move(value)); return *this;}
742 
743 
747  inline const DeviceConfiguration& GetDeviceConfiguration() const{ return m_deviceConfiguration; }
748 
752  inline bool DeviceConfigurationHasBeenSet() const { return m_deviceConfigurationHasBeenSet; }
753 
757  inline void SetDeviceConfiguration(const DeviceConfiguration& value) { m_deviceConfigurationHasBeenSet = true; m_deviceConfiguration = value; }
758 
762  inline void SetDeviceConfiguration(DeviceConfiguration&& value) { m_deviceConfigurationHasBeenSet = true; m_deviceConfiguration = std::move(value); }
763 
767  inline CreateJobRequest& WithDeviceConfiguration(const DeviceConfiguration& value) { SetDeviceConfiguration(value); return *this;}
768 
772  inline CreateJobRequest& WithDeviceConfiguration(DeviceConfiguration&& value) { SetDeviceConfiguration(std::move(value)); return *this;}
773 
774  private:
775 
776  JobType m_jobType;
777  bool m_jobTypeHasBeenSet;
778 
779  JobResource m_resources;
780  bool m_resourcesHasBeenSet;
781 
782  Aws::String m_description;
783  bool m_descriptionHasBeenSet;
784 
785  Aws::String m_addressId;
786  bool m_addressIdHasBeenSet;
787 
788  Aws::String m_kmsKeyARN;
789  bool m_kmsKeyARNHasBeenSet;
790 
791  Aws::String m_roleARN;
792  bool m_roleARNHasBeenSet;
793 
794  SnowballCapacity m_snowballCapacityPreference;
795  bool m_snowballCapacityPreferenceHasBeenSet;
796 
797  ShippingOption m_shippingOption;
798  bool m_shippingOptionHasBeenSet;
799 
800  Notification m_notification;
801  bool m_notificationHasBeenSet;
802 
803  Aws::String m_clusterId;
804  bool m_clusterIdHasBeenSet;
805 
806  SnowballType m_snowballType;
807  bool m_snowballTypeHasBeenSet;
808 
809  Aws::String m_forwardingAddressId;
810  bool m_forwardingAddressIdHasBeenSet;
811 
812  TaxDocuments m_taxDocuments;
813  bool m_taxDocumentsHasBeenSet;
814 
815  DeviceConfiguration m_deviceConfiguration;
816  bool m_deviceConfigurationHasBeenSet;
817  };
818 
819 } // namespace Model
820 } // namespace Snowball
821 } // namespace Aws
const SnowballCapacity & GetSnowballCapacityPreference() const
const SnowballType & GetSnowballType() const
CreateJobRequest & WithAddressId(Aws::String &&value)
const Aws::String & GetForwardingAddressId() const
CreateJobRequest & WithJobType(const JobType &value)
CreateJobRequest & WithNotification(const Notification &value)
const Aws::String & GetRoleARN() const
void SetRoleARN(const Aws::String &value)
void SetShippingOption(ShippingOption &&value)
CreateJobRequest & WithResources(const JobResource &value)
CreateJobRequest & WithResources(JobResource &&value)
CreateJobRequest & WithForwardingAddressId(Aws::String &&value)
void SetClusterId(const Aws::String &value)
CreateJobRequest & WithDeviceConfiguration(DeviceConfiguration &&value)
const Aws::String & GetAddressId() const
void SetForwardingAddressId(Aws::String &&value)
CreateJobRequest & WithAddressId(const char *value)
CreateJobRequest & WithDeviceConfiguration(const DeviceConfiguration &value)
CreateJobRequest & WithClusterId(Aws::String &&value)
void SetSnowballType(const SnowballType &value)
CreateJobRequest & WithTaxDocuments(TaxDocuments &&value)
void SetNotification(Notification &&value)
const Notification & GetNotification() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetTaxDocuments(const TaxDocuments &value)
CreateJobRequest & WithClusterId(const Aws::String &value)
void SetAddressId(const Aws::String &value)
CreateJobRequest & WithRoleARN(const Aws::String &value)
CreateJobRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
void SetDeviceConfiguration(const DeviceConfiguration &value)
CreateJobRequest & WithForwardingAddressId(const Aws::String &value)
void SetResources(const JobResource &value)
CreateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
CreateJobRequest & WithKmsKeyARN(const char *value)
CreateJobRequest & WithKmsKeyARN(Aws::String &&value)
CreateJobRequest & WithSnowballType(const SnowballType &value)
void SetForwardingAddressId(const Aws::String &value)
void SetDeviceConfiguration(DeviceConfiguration &&value)
const DeviceConfiguration & GetDeviceConfiguration() const
CreateJobRequest & WithForwardingAddressId(const char *value)
CreateJobRequest & WithAddressId(const Aws::String &value)
const Aws::String & GetDescription() const
CreateJobRequest & WithKmsKeyARN(const Aws::String &value)
void SetForwardingAddressId(const char *value)
CreateJobRequest & WithShippingOption(ShippingOption &&value)
void SetShippingOption(const ShippingOption &value)
CreateJobRequest & WithDescription(Aws::String &&value)
void SetJobType(const JobType &value)
CreateJobRequest & WithJobType(JobType &&value)
void SetSnowballCapacityPreference(SnowballCapacity &&value)
CreateJobRequest & WithNotification(Notification &&value)
#define AWS_SNOWBALL_API
CreateJobRequest & WithShippingOption(const ShippingOption &value)
void SetKmsKeyARN(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithClusterId(const char *value)
CreateJobRequest & WithSnowballType(SnowballType &&value)
const ShippingOption & GetShippingOption() const
void SetKmsKeyARN(Aws::String &&value)
void SetDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResources(JobResource &&value)
CreateJobRequest & WithDescription(const Aws::String &value)
const TaxDocuments & GetTaxDocuments() const
void SetRoleARN(Aws::String &&value)
const Aws::String & GetClusterId() const
void SetTaxDocuments(TaxDocuments &&value)
void SetSnowballCapacityPreference(const SnowballCapacity &value)
CreateJobRequest & WithDescription(const char *value)
CreateJobRequest & WithRoleARN(const char *value)
CreateJobRequest & WithTaxDocuments(const TaxDocuments &value)
CreateJobRequest & WithRoleARN(Aws::String &&value)
void SetAddressId(Aws::String &&value)
void SetDescription(const Aws::String &value)
const Aws::String & GetKmsKeyARN() const
void SetNotification(const Notification &value)
const JobResource & GetResources() const
void SetClusterId(Aws::String &&value)
void SetSnowballType(SnowballType &&value)