AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateJobRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 namespace Snowball
27 {
28 namespace Model
29 {
30 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::String& GetJobId() const{ return m_jobId; }
46 
51  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
52 
57  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
58 
63  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
64 
69  inline UpdateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
70 
75  inline UpdateJobRequest& WithJobId(Aws::String&& value) { SetJobId(value); return *this;}
76 
81  inline UpdateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
82 
89  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
90 
97  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
98 
105  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
106 
113  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
114 
121  inline UpdateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
122 
129  inline UpdateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
130 
137  inline UpdateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
138 
142  inline const Notification& GetNotification() const{ return m_notification; }
143 
147  inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
148 
152  inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = value; }
153 
157  inline UpdateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
158 
162  inline UpdateJobRequest& WithNotification(Notification&& value) { SetNotification(value); return *this;}
163 
169  inline const JobResource& GetResources() const{ return m_resources; }
170 
176  inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
177 
183  inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = value; }
184 
190  inline UpdateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
191 
197  inline UpdateJobRequest& WithResources(JobResource&& value) { SetResources(value); return *this;}
198 
202  inline const Aws::String& GetAddressId() const{ return m_addressId; }
203 
207  inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
208 
212  inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
213 
217  inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
218 
222  inline UpdateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
223 
227  inline UpdateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(value); return *this;}
228 
232  inline UpdateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
233 
238  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
239 
244  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
245 
250  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
251 
256  inline UpdateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
257 
262  inline UpdateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(value); return *this;}
263 
267  inline const Aws::String& GetDescription() const{ return m_description; }
268 
272  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
273 
277  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
278 
282  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
283 
287  inline UpdateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
288 
292  inline UpdateJobRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
293 
297  inline UpdateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
298 
304  inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
305 
311  inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
312 
318  inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
319 
325  inline UpdateJobRequest& WithSnowballCapacityPreference(const SnowballCapacity& value) { SetSnowballCapacityPreference(value); return *this;}
326 
332  inline UpdateJobRequest& WithSnowballCapacityPreference(SnowballCapacity&& value) { SetSnowballCapacityPreference(value); return *this;}
333 
334  private:
335  Aws::String m_jobId;
336  bool m_jobIdHasBeenSet;
337  Aws::String m_roleARN;
338  bool m_roleARNHasBeenSet;
339  Notification m_notification;
340  bool m_notificationHasBeenSet;
341  JobResource m_resources;
342  bool m_resourcesHasBeenSet;
343  Aws::String m_addressId;
344  bool m_addressIdHasBeenSet;
345  ShippingOption m_shippingOption;
346  bool m_shippingOptionHasBeenSet;
347  Aws::String m_description;
348  bool m_descriptionHasBeenSet;
349  SnowballCapacity m_snowballCapacityPreference;
350  bool m_snowballCapacityPreferenceHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace Snowball
355 } // namespace Aws
void SetRoleARN(const 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)
const Aws::String & GetRoleARN() const
void SetJobId(const Aws::String &value)
void SetDescription(const Aws::String &value)
UpdateJobRequest & WithAddressId(const Aws::String &value)
void SetDescription(Aws::String &&value)
UpdateJobRequest & WithShippingOption(ShippingOption &&value)
const ShippingOption & GetShippingOption() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateJobRequest & WithJobId(const char *value)
void SetShippingOption(ShippingOption &&value)
UpdateJobRequest & WithAddressId(Aws::String &&value)
UpdateJobRequest & WithRoleARN(const char *value)
void SetJobId(Aws::String &&value)
const SnowballCapacity & GetSnowballCapacityPreference() const
const Aws::String & GetDescription() const
const JobResource & GetResources() const
void SetSnowballCapacityPreference(const SnowballCapacity &value)
void SetSnowballCapacityPreference(SnowballCapacity &&value)
void SetResources(const JobResource &value)
UpdateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
void SetNotification(const Notification &value)
const Aws::String & GetJobId() const
UpdateJobRequest & WithJobId(Aws::String &&value)
UpdateJobRequest & WithResources(JobResource &&value)
#define AWS_SNOWBALL_API
const Notification & GetNotification() const
UpdateJobRequest & WithNotification(const Notification &value)
UpdateJobRequest & WithDescription(const Aws::String &value)
const Aws::String & GetAddressId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateJobRequest & WithRoleARN(const Aws::String &value)
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)
JSON (JavaScript Object Notation).
void SetAddressId(Aws::String &&value)