AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Snowball
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateJob"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
45  inline const Aws::String& GetJobId() const{ return m_jobId; }
46 
51  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
52 
57  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
58 
63  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
64 
69  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
70 
75  inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
76 
81  inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
82 
87  inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
88 
89 
96  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
97 
104  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
105 
112  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
113 
120  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
121 
128  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
129 
136  inline UpdateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
137 
144  inline UpdateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
145 
152  inline UpdateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
153 
154 
158  inline const Notification& GetNotification() const{ return m_notification; }
159 
163  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
164 
168  inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
169 
173  inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
174 
178  inline UpdateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
179 
183  inline UpdateJobRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
184 
185 
190  inline const JobResource& GetResources() const{ return m_resources; }
191 
196  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
197 
202  inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
203 
208  inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
209 
214  inline UpdateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
215 
220  inline UpdateJobRequest& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
221 
222 
226  inline const Aws::String& GetAddressId() const{ return m_addressId; }
227 
231  inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
232 
236  inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
237 
241  inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
242 
246  inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
247 
251  inline UpdateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
252 
256  inline UpdateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
257 
261  inline UpdateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
262 
263 
268  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
269 
274  inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
275 
280  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
281 
286  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
287 
292  inline UpdateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
293 
298  inline UpdateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
299 
300 
304  inline const Aws::String& GetDescription() const{ return m_description; }
305 
309  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
310 
314  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
315 
319  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
320 
324  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
325 
329  inline UpdateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
330 
334  inline UpdateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
335 
339  inline UpdateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
340 
341 
347  inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
348 
354  inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
355 
361  inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
362 
368  inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = std::move(value); }
369 
375  inline UpdateJobRequest& WithSnowballCapacityPreference(const SnowballCapacity& value) { SetSnowballCapacityPreference(value); return *this;}
376 
382  inline UpdateJobRequest& WithSnowballCapacityPreference(SnowballCapacity&& value) { SetSnowballCapacityPreference(std::move(value)); return *this;}
383 
384 
389  inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
390 
395  inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
396 
401  inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
402 
407  inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
408 
413  inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
414 
419  inline UpdateJobRequest& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;}
420 
425  inline UpdateJobRequest& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
426 
431  inline UpdateJobRequest& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
432 
433  private:
434 
435  Aws::String m_jobId;
436  bool m_jobIdHasBeenSet;
437 
438  Aws::String m_roleARN;
439  bool m_roleARNHasBeenSet;
440 
441  Notification m_notification;
442  bool m_notificationHasBeenSet;
443 
444  JobResource m_resources;
445  bool m_resourcesHasBeenSet;
446 
447  Aws::String m_addressId;
448  bool m_addressIdHasBeenSet;
449 
450  ShippingOption m_shippingOption;
451  bool m_shippingOptionHasBeenSet;
452 
453  Aws::String m_description;
454  bool m_descriptionHasBeenSet;
455 
456  SnowballCapacity m_snowballCapacityPreference;
457  bool m_snowballCapacityPreferenceHasBeenSet;
458 
459  Aws::String m_forwardingAddressId;
460  bool m_forwardingAddressIdHasBeenSet;
461  };
462 
463 } // namespace Model
464 } // namespace Snowball
465 } // namespace Aws
void SetForwardingAddressId(const Aws::String &value)
void SetRoleARN(const Aws::String &value)
UpdateJobRequest & WithForwardingAddressId(Aws::String &&value)
void SetResources(JobResource &&value)
void SetRoleARN(Aws::String &&value)
void SetAddressId(const Aws::String &value)
UpdateJobRequest & WithAddressId(const char *value)
UpdateJobRequest & WithJobId(const Aws::String &value)
UpdateJobRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
UpdateJobRequest & WithDescription(Aws::String &&value)
void SetJobId(const Aws::String &value)
void SetDescription(const Aws::String &value)
UpdateJobRequest & WithAddressId(const Aws::String &value)
const Aws::String & GetAddressId() const
const Notification & GetNotification() const
void SetDescription(Aws::String &&value)
UpdateJobRequest & WithShippingOption(ShippingOption &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateJobRequest & WithJobId(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDescription() const
void SetShippingOption(ShippingOption &&value)
UpdateJobRequest & WithAddressId(Aws::String &&value)
UpdateJobRequest & WithForwardingAddressId(const char *value)
UpdateJobRequest & WithRoleARN(const char *value)
void SetJobId(Aws::String &&value)
void SetForwardingAddressId(const char *value)
void SetSnowballCapacityPreference(const SnowballCapacity &value)
void SetSnowballCapacityPreference(SnowballCapacity &&value)
void SetResources(const JobResource &value)
const JobResource & GetResources() const
UpdateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
void SetNotification(const Notification &value)
UpdateJobRequest & WithJobId(Aws::String &&value)
UpdateJobRequest & WithForwardingAddressId(const Aws::String &value)
UpdateJobRequest & WithResources(JobResource &&value)
#define AWS_SNOWBALL_API
const Aws::String & GetRoleARN() const
UpdateJobRequest & WithNotification(const Notification &value)
UpdateJobRequest & WithDescription(const Aws::String &value)
const ShippingOption & GetShippingOption() const
const Aws::String & GetForwardingAddressId() const
void SetForwardingAddressId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateJobRequest & WithRoleARN(const Aws::String &value)
const Aws::String & GetJobId() const
const SnowballCapacity & GetSnowballCapacityPreference() const
void SetShippingOption(const ShippingOption &value)
UpdateJobRequest & WithResources(const JobResource &value)
UpdateJobRequest & WithShippingOption(const ShippingOption &value)
UpdateJobRequest & WithNotification(Notification &&value)
void SetNotification(Notification &&value)
UpdateJobRequest & WithDescription(const char *value)
UpdateJobRequest & WithRoleARN(Aws::String &&value)
void SetAddressId(Aws::String &&value)