AWS SDK for C++  1.9.107
AWS SDK for C++
UpdateJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Snowball
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetJobId() const{ return m_jobId; }
47 
52  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 
58  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
59 
64  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
65 
70  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
71 
76  inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
77 
82  inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
83 
88  inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
89 
90 
97  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
98 
105  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
106 
113  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
114 
121  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
122 
129  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
130 
137  inline UpdateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
138 
145  inline UpdateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
146 
153  inline UpdateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
154 
155 
159  inline const Notification& GetNotification() const{ return m_notification; }
160 
164  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
165 
169  inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
170 
174  inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
175 
179  inline UpdateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
180 
184  inline UpdateJobRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
185 
186 
191  inline const JobResource& GetResources() const{ return m_resources; }
192 
197  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
198 
203  inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
204 
209  inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
210 
215  inline UpdateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
216 
221  inline UpdateJobRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
222 
223 
229  inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_onDeviceServiceConfiguration; }
230 
236  inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
237 
243  inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; }
244 
250  inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); }
251 
257  inline UpdateJobRequest& WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { SetOnDeviceServiceConfiguration(value); return *this;}
258 
264  inline UpdateJobRequest& WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { SetOnDeviceServiceConfiguration(std::move(value)); return *this;}
265 
266 
270  inline const Aws::String& GetAddressId() const{ return m_addressId; }
271 
275  inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
276 
280  inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
281 
285  inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
286 
290  inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
291 
295  inline UpdateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
296 
300  inline UpdateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
301 
305  inline UpdateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
306 
307 
312  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
313 
318  inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
319 
324  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
325 
330  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
331 
336  inline UpdateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
337 
342  inline UpdateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
343 
344 
348  inline const Aws::String& GetDescription() const{ return m_description; }
349 
353  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
354 
358  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
359 
363  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
364 
368  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
369 
373  inline UpdateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
374 
378  inline UpdateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
379 
383  inline UpdateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
384 
385 
395  inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
396 
406  inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
407 
417  inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
418 
428  inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); }
429 
439  inline UpdateJobRequest& WithSnowballCapacityPreference(const SnowballCapacity& value) { SetSnowballCapacityPreference(value); return *this;}
440 
450  inline UpdateJobRequest& WithSnowballCapacityPreference(SnowballCapacity&& value) { SetSnowballCapacityPreference(std::move(value)); return *this;}
451 
452 
457  inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
458 
463  inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
464 
469  inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
470 
475  inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
476 
481  inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
482 
487  inline UpdateJobRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;}
488 
493  inline UpdateJobRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
494 
499  inline UpdateJobRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
500 
501  private:
502 
503  Aws::String m_jobId;
504  bool m_jobIdHasBeenSet;
505 
506  Aws::String m_roleARN;
507  bool m_roleARNHasBeenSet;
508 
509  Notification m_notification;
510  bool m_notificationHasBeenSet;
511 
512  JobResource m_resources;
513  bool m_resourcesHasBeenSet;
514 
515  OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
516  bool m_onDeviceServiceConfigurationHasBeenSet;
517 
518  Aws::String m_addressId;
519  bool m_addressIdHasBeenSet;
520 
521  ShippingOption m_shippingOption;
522  bool m_shippingOptionHasBeenSet;
523 
524  Aws::String m_description;
525  bool m_descriptionHasBeenSet;
526 
527  SnowballCapacity m_snowballCapacityPreference;
528  bool m_snowballCapacityPreferenceHasBeenSet;
529 
530  Aws::String m_forwardingAddressId;
531  bool m_forwardingAddressIdHasBeenSet;
532  };
533 
534 } // namespace Model
535 } // namespace Snowball
536 } // namespace Aws
Aws::Snowball::Model::UpdateJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::UpdateJobRequest::NotificationHasBeenSet
bool NotificationHasBeenSet() const
Definition: UpdateJobRequest.h:164
Aws::Snowball::Model::UpdateJobRequest::WithDescription
UpdateJobRequest & WithDescription(const Aws::String &value)
Definition: UpdateJobRequest.h:373
Aws::Snowball::Model::UpdateJobRequest
Definition: UpdateJobRequest.h:27
Aws::Snowball::Model::UpdateJobRequest::SetResources
void SetResources(JobResource &&value)
Definition: UpdateJobRequest.h:209
Aws::Snowball::Model::UpdateJobRequest::GetSnowballCapacityPreference
const SnowballCapacity & GetSnowballCapacityPreference() const
Definition: UpdateJobRequest.h:395
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
JobResource.h
Aws::Snowball::Model::UpdateJobRequest::WithDescription
UpdateJobRequest & WithDescription(Aws::String &&value)
Definition: UpdateJobRequest.h:378
Aws::Snowball::Model::UpdateJobRequest::SetAddressId
void SetAddressId(const char *value)
Definition: UpdateJobRequest.h:290
Aws::Snowball::Model::UpdateJobRequest::GetForwardingAddressId
const Aws::String & GetForwardingAddressId() const
Definition: UpdateJobRequest.h:457
Aws::Snowball::Model::UpdateJobRequest::WithJobId
UpdateJobRequest & WithJobId(const Aws::String &value)
Definition: UpdateJobRequest.h:76
Aws::Snowball::Model::UpdateJobRequest::SetNotification
void SetNotification(const Notification &value)
Definition: UpdateJobRequest.h:169
Aws::Snowball::Model::UpdateJobRequest::SetShippingOption
void SetShippingOption(const ShippingOption &value)
Definition: UpdateJobRequest.h:324
Aws::Snowball::Model::UpdateJobRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateJobRequest.h:368
Aws::Snowball::Model::UpdateJobRequest::SnowballCapacityPreferenceHasBeenSet
bool SnowballCapacityPreferenceHasBeenSet() const
Definition: UpdateJobRequest.h:406
Aws::Snowball::Model::UpdateJobRequest::WithSnowballCapacityPreference
UpdateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
Definition: UpdateJobRequest.h:439
Aws::Snowball::Model::UpdateJobRequest::SetJobId
void SetJobId(const char *value)
Definition: UpdateJobRequest.h:70
Aws::Snowball::Model::UpdateJobRequest::UpdateJobRequest
UpdateJobRequest()
OnDeviceServiceConfiguration.h
Aws::Snowball::Model::UpdateJobRequest::SetAddressId
void SetAddressId(const Aws::String &value)
Definition: UpdateJobRequest.h:280
Aws::Snowball::Model::UpdateJobRequest::AddressIdHasBeenSet
bool AddressIdHasBeenSet() const
Definition: UpdateJobRequest.h:275
Aws::Snowball::Model::UpdateJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: UpdateJobRequest.h:64
Aws::Snowball::Model::UpdateJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: UpdateJobRequest.h:46
Aws::Snowball::Model::UpdateJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: UpdateJobRequest.h:58
Aws::Snowball::Model::UpdateJobRequest::WithShippingOption
UpdateJobRequest & WithShippingOption(const ShippingOption &value)
Definition: UpdateJobRequest.h:336
Aws::Snowball::Model::UpdateJobRequest::WithOnDeviceServiceConfiguration
UpdateJobRequest & WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
Definition: UpdateJobRequest.h:257
Aws::Snowball::Model::UpdateJobRequest::WithForwardingAddressId
UpdateJobRequest & WithForwardingAddressId(const char *value)
Definition: UpdateJobRequest.h:499
Aws::Snowball::Model::UpdateJobRequest::SetForwardingAddressId
void SetForwardingAddressId(const Aws::String &value)
Definition: UpdateJobRequest.h:469
ShippingOption.h
Aws::Snowball::Model::UpdateJobRequest::WithJobId
UpdateJobRequest & WithJobId(const char *value)
Definition: UpdateJobRequest.h:88
Aws::Snowball::Model::UpdateJobRequest::GetNotification
const Notification & GetNotification() const
Definition: UpdateJobRequest.h:159
Aws::Snowball::Model::OnDeviceServiceConfiguration
Definition: OnDeviceServiceConfiguration.h:33
Aws::Snowball::Model::UpdateJobRequest::WithNotification
UpdateJobRequest & WithNotification(const Notification &value)
Definition: UpdateJobRequest.h:179
Aws::Snowball::Model::UpdateJobRequest::WithForwardingAddressId
UpdateJobRequest & WithForwardingAddressId(Aws::String &&value)
Definition: UpdateJobRequest.h:493
Aws::Snowball::Model::UpdateJobRequest::WithForwardingAddressId
UpdateJobRequest & WithForwardingAddressId(const Aws::String &value)
Definition: UpdateJobRequest.h:487
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
SnowballRequest.h
Aws::Snowball::Model::UpdateJobRequest::SetRoleARN
void SetRoleARN(const char *value)
Definition: UpdateJobRequest.h:129
Aws::Snowball::Model::UpdateJobRequest::WithRoleARN
UpdateJobRequest & WithRoleARN(const Aws::String &value)
Definition: UpdateJobRequest.h:137
Aws::Snowball::Model::UpdateJobRequest::WithAddressId
UpdateJobRequest & WithAddressId(const char *value)
Definition: UpdateJobRequest.h:305
Aws::Snowball::Model::UpdateJobRequest::WithOnDeviceServiceConfiguration
UpdateJobRequest & WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
Definition: UpdateJobRequest.h:264
Aws::Snowball::Model::UpdateJobRequest::WithDescription
UpdateJobRequest & WithDescription(const char *value)
Definition: UpdateJobRequest.h:383
Aws::Snowball::Model::UpdateJobRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateJobRequest.h:353
Aws::Snowball::Model::UpdateJobRequest::SetShippingOption
void SetShippingOption(ShippingOption &&value)
Definition: UpdateJobRequest.h:330
Aws::Snowball::Model::UpdateJobRequest::WithAddressId
UpdateJobRequest & WithAddressId(const Aws::String &value)
Definition: UpdateJobRequest.h:295
Aws::Snowball::Model::UpdateJobRequest::SetRoleARN
void SetRoleARN(const Aws::String &value)
Definition: UpdateJobRequest.h:113
Aws::Snowball::Model::UpdateJobRequest::SetOnDeviceServiceConfiguration
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
Definition: UpdateJobRequest.h:250
Aws::Snowball::Model::UpdateJobRequest::ShippingOptionHasBeenSet
bool ShippingOptionHasBeenSet() const
Definition: UpdateJobRequest.h:318
Aws::Snowball::Model::UpdateJobRequest::WithRoleARN
UpdateJobRequest & WithRoleARN(Aws::String &&value)
Definition: UpdateJobRequest.h:145
Aws::Snowball::Model::UpdateJobRequest::RoleARNHasBeenSet
bool RoleARNHasBeenSet() const
Definition: UpdateJobRequest.h:105
SnowballCapacity.h
Aws::Snowball::Model::UpdateJobRequest::SetForwardingAddressId
void SetForwardingAddressId(const char *value)
Definition: UpdateJobRequest.h:481
Aws::Snowball::Model::UpdateJobRequest::WithNotification
UpdateJobRequest & WithNotification(Notification &&value)
Definition: UpdateJobRequest.h:184
AWSString.h
Aws::Snowball::Model::UpdateJobRequest::WithResources
UpdateJobRequest & WithResources(const JobResource &value)
Definition: UpdateJobRequest.h:215
Aws::Snowball::Model::UpdateJobRequest::OnDeviceServiceConfigurationHasBeenSet
bool OnDeviceServiceConfigurationHasBeenSet() const
Definition: UpdateJobRequest.h:236
Aws::Snowball::Model::UpdateJobRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateJobRequest.h:363
Aws::Snowball::Model::UpdateJobRequest::SetRoleARN
void SetRoleARN(Aws::String &&value)
Definition: UpdateJobRequest.h:121
Aws::Snowball::Model::UpdateJobRequest::WithResources
UpdateJobRequest & WithResources(JobResource &&value)
Definition: UpdateJobRequest.h:221
Aws::Snowball::Model::UpdateJobRequest::WithSnowballCapacityPreference
UpdateJobRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
Definition: UpdateJobRequest.h:450
Aws::Snowball::Model::UpdateJobRequest::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: UpdateJobRequest.h:197
Aws::Snowball::Model::UpdateJobRequest::SetForwardingAddressId
void SetForwardingAddressId(Aws::String &&value)
Definition: UpdateJobRequest.h:475
Aws::Snowball::Model::JobResource
Definition: JobResource.h:38
Aws::Snowball::Model::UpdateJobRequest::WithAddressId
UpdateJobRequest & WithAddressId(Aws::String &&value)
Definition: UpdateJobRequest.h:300
Aws::Snowball::Model::UpdateJobRequest::GetAddressId
const Aws::String & GetAddressId() const
Definition: UpdateJobRequest.h:270
Aws::Snowball::Model::UpdateJobRequest::SetAddressId
void SetAddressId(Aws::String &&value)
Definition: UpdateJobRequest.h:285
Aws::Snowball::Model::Notification
Definition: Notification.h:41
Notification.h
Aws::Snowball::Model::SnowballCapacity
SnowballCapacity
Definition: SnowballCapacity.h:17
Aws::Snowball::Model::UpdateJobRequest::GetShippingOption
const ShippingOption & GetShippingOption() const
Definition: UpdateJobRequest.h:312
Aws::Snowball::Model::UpdateJobRequest::GetOnDeviceServiceConfiguration
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
Definition: UpdateJobRequest.h:229
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::UpdateJobRequest::SetNotification
void SetNotification(Notification &&value)
Definition: UpdateJobRequest.h:174
Aws::Snowball::Model::UpdateJobRequest::SetResources
void SetResources(const JobResource &value)
Definition: UpdateJobRequest.h:203
Aws::Snowball::Model::UpdateJobRequest::ForwardingAddressIdHasBeenSet
bool ForwardingAddressIdHasBeenSet() const
Definition: UpdateJobRequest.h:463
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::UpdateJobRequest::GetResources
const JobResource & GetResources() const
Definition: UpdateJobRequest.h:191
Aws::Snowball::Model::UpdateJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateJobRequest.h:35
Aws::Snowball::Model::UpdateJobRequest::WithRoleARN
UpdateJobRequest & WithRoleARN(const char *value)
Definition: UpdateJobRequest.h:153
Aws::Snowball::Model::UpdateJobRequest::GetRoleARN
const Aws::String & GetRoleARN() const
Definition: UpdateJobRequest.h:97
Aws::Snowball::Model::UpdateJobRequest::WithJobId
UpdateJobRequest & WithJobId(Aws::String &&value)
Definition: UpdateJobRequest.h:82
Aws::Snowball::Model::UpdateJobRequest::SetSnowballCapacityPreference
void SetSnowballCapacityPreference(const SnowballCapacity &value)
Definition: UpdateJobRequest.h:417
Aws::Snowball::Model::UpdateJobRequest::SetOnDeviceServiceConfiguration
void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
Definition: UpdateJobRequest.h:243
Snowball_EXPORTS.h
Aws::Snowball::Model::UpdateJobRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Snowball::Model::UpdateJobRequest::WithShippingOption
UpdateJobRequest & WithShippingOption(ShippingOption &&value)
Definition: UpdateJobRequest.h:342
Aws::Snowball::Model::UpdateJobRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateJobRequest.h:348
Aws::Snowball::Model::UpdateJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: UpdateJobRequest.h:52
Aws::Snowball::Model::ShippingOption
ShippingOption
Definition: ShippingOption.h:17
Aws::Snowball::Model::UpdateJobRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateJobRequest.h:358
Aws::Snowball::Model::UpdateJobRequest::SetSnowballCapacityPreference
void SetSnowballCapacityPreference(SnowballCapacity &&value)
Definition: UpdateJobRequest.h:428