AWS SDK for C++  0.14.3
AWS SDK for C++
CreateJobRequest.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
24 
25 namespace Aws
26 {
27 namespace Snowball
28 {
29 namespace Model
30 {
31 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
45  inline const JobType& GetJobType() const{ return m_jobType; }
46 
50  inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
51 
55  inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
56 
60  inline CreateJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
61 
65  inline CreateJobRequest& WithJobType(JobType&& value) { SetJobType(value); return *this;}
66 
77  inline const JobResource& GetResources() const{ return m_resources; }
78 
89  inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
90 
101  inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = value; }
102 
113  inline CreateJobRequest& WithResources(const JobResource& value) { SetResources(value); return *this;}
114 
125  inline CreateJobRequest& WithResources(JobResource&& value) { SetResources(value); return *this;}
126 
131  inline const Aws::String& GetDescription() const{ return m_description; }
132 
137  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
138 
143  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
144 
149  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
150 
155  inline CreateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
156 
161  inline CreateJobRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
162 
167  inline CreateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
168 
172  inline const Aws::String& GetAddressId() const{ return m_addressId; }
173 
177  inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
178 
182  inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
183 
187  inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
188 
192  inline CreateJobRequest& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
193 
197  inline CreateJobRequest& WithAddressId(Aws::String&& value) { SetAddressId(value); return *this;}
198 
202  inline CreateJobRequest& WithAddressId(const char* value) { SetAddressId(value); return *this;}
203 
210  inline const Aws::String& GetKmsKeyARN() const{ return m_kmsKeyARN; }
211 
218  inline void SetKmsKeyARN(const Aws::String& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; }
219 
226  inline void SetKmsKeyARN(Aws::String&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; }
227 
234  inline void SetKmsKeyARN(const char* value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN.assign(value); }
235 
242  inline CreateJobRequest& WithKmsKeyARN(const Aws::String& value) { SetKmsKeyARN(value); return *this;}
243 
250  inline CreateJobRequest& WithKmsKeyARN(Aws::String&& value) { SetKmsKeyARN(value); return *this;}
251 
258  inline CreateJobRequest& WithKmsKeyARN(const char* value) { SetKmsKeyARN(value); return *this;}
259 
266  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
267 
274  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
275 
282  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
283 
290  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
291 
298  inline CreateJobRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
299 
306  inline CreateJobRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
307 
314  inline CreateJobRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
315 
321  inline const SnowballCapacity& GetSnowballCapacityPreference() const{ return m_snowballCapacityPreference; }
322 
328  inline void SetSnowballCapacityPreference(const SnowballCapacity& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
329 
335  inline void SetSnowballCapacityPreference(SnowballCapacity&& value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
336 
342  inline CreateJobRequest& WithSnowballCapacityPreference(const SnowballCapacity& value) { SetSnowballCapacityPreference(value); return *this;}
343 
349  inline CreateJobRequest& WithSnowballCapacityPreference(SnowballCapacity&& value) { SetSnowballCapacityPreference(value); return *this;}
350 
364  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
365 
379  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
380 
394  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
395 
409  inline CreateJobRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
410 
424  inline CreateJobRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(value); return *this;}
425 
430  inline const Notification& GetNotification() const{ return m_notification; }
431 
436  inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
437 
442  inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = value; }
443 
448  inline CreateJobRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
449 
454  inline CreateJobRequest& WithNotification(Notification&& value) { SetNotification(value); return *this;}
455 
456  private:
457  JobType m_jobType;
458  bool m_jobTypeHasBeenSet;
459  JobResource m_resources;
460  bool m_resourcesHasBeenSet;
461  Aws::String m_description;
462  bool m_descriptionHasBeenSet;
463  Aws::String m_addressId;
464  bool m_addressIdHasBeenSet;
465  Aws::String m_kmsKeyARN;
466  bool m_kmsKeyARNHasBeenSet;
467  Aws::String m_roleARN;
468  bool m_roleARNHasBeenSet;
469  SnowballCapacity m_snowballCapacityPreference;
470  bool m_snowballCapacityPreferenceHasBeenSet;
471  ShippingOption m_shippingOption;
472  bool m_shippingOptionHasBeenSet;
473  Notification m_notification;
474  bool m_notificationHasBeenSet;
475  };
476 
477 } // namespace Model
478 } // namespace Snowball
479 } // namespace Aws
CreateJobRequest & WithAddressId(Aws::String &&value)
CreateJobRequest & WithJobType(const JobType &value)
CreateJobRequest & WithNotification(const Notification &value)
void SetRoleARN(const Aws::String &value)
void SetShippingOption(ShippingOption &&value)
CreateJobRequest & WithResources(const JobResource &value)
CreateJobRequest & WithResources(JobResource &&value)
const ShippingOption & GetShippingOption() const
CreateJobRequest & WithAddressId(const char *value)
const Notification & GetNotification() const
void SetNotification(Notification &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::String & GetAddressId() const
void SetAddressId(const Aws::String &value)
CreateJobRequest & WithRoleARN(const Aws::String &value)
CreateJobRequest & WithSnowballCapacityPreference(SnowballCapacity &&value)
void SetResources(const JobResource &value)
CreateJobRequest & WithSnowballCapacityPreference(const SnowballCapacity &value)
CreateJobRequest & WithKmsKeyARN(const char *value)
CreateJobRequest & WithKmsKeyARN(Aws::String &&value)
const SnowballCapacity & GetSnowballCapacityPreference() const
CreateJobRequest & WithAddressId(const Aws::String &value)
const JobResource & GetResources() const
CreateJobRequest & WithKmsKeyARN(const Aws::String &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)
const Aws::String & GetDescription() const
const Aws::String & GetKmsKeyARN() const
void SetKmsKeyARN(const Aws::String &value)
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)
void SetRoleARN(Aws::String &&value)
void SetSnowballCapacityPreference(const SnowballCapacity &value)
CreateJobRequest & WithDescription(const char *value)
CreateJobRequest & WithRoleARN(const char *value)
CreateJobRequest & WithRoleARN(Aws::String &&value)
void SetAddressId(Aws::String &&value)
void SetDescription(const Aws::String &value)
void SetNotification(const Notification &value)
JSON (JavaScript Object Notation).
const Aws::String & GetRoleARN() const