AWS SDK for C++  0.12.9
AWS SDK for C++
ImportImageRequest.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
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
22 
23 namespace Aws
24 {
25 namespace EC2
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 
61  inline ImportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
62 
66  inline const Aws::String& GetDescription() const{ return m_description; }
67 
71  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 
76  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 
81  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 
86  inline ImportImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 
91  inline ImportImageRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
92 
96  inline ImportImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
97 
101  inline const Aws::Vector<ImageDiskContainer>& GetDiskContainers() const{ return m_diskContainers; }
102 
106  inline void SetDiskContainers(const Aws::Vector<ImageDiskContainer>& value) { m_diskContainersHasBeenSet = true; m_diskContainers = value; }
107 
111  inline void SetDiskContainers(Aws::Vector<ImageDiskContainer>&& value) { m_diskContainersHasBeenSet = true; m_diskContainers = value; }
112 
116  inline ImportImageRequest& WithDiskContainers(const Aws::Vector<ImageDiskContainer>& value) { SetDiskContainers(value); return *this;}
117 
121  inline ImportImageRequest& WithDiskContainers(Aws::Vector<ImageDiskContainer>&& value) { SetDiskContainers(value); return *this;}
122 
126  inline ImportImageRequest& AddDiskContainers(const ImageDiskContainer& value) { m_diskContainersHasBeenSet = true; m_diskContainers.push_back(value); return *this; }
127 
131  inline ImportImageRequest& AddDiskContainers(ImageDiskContainer&& value) { m_diskContainersHasBeenSet = true; m_diskContainers.push_back(value); return *this; }
132 
142  inline const Aws::String& GetLicenseType() const{ return m_licenseType; }
143 
153  inline void SetLicenseType(const Aws::String& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
154 
164  inline void SetLicenseType(Aws::String&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
165 
175  inline void SetLicenseType(const char* value) { m_licenseTypeHasBeenSet = true; m_licenseType.assign(value); }
176 
186  inline ImportImageRequest& WithLicenseType(const Aws::String& value) { SetLicenseType(value); return *this;}
187 
197  inline ImportImageRequest& WithLicenseType(Aws::String&& value) { SetLicenseType(value); return *this;}
198 
208  inline ImportImageRequest& WithLicenseType(const char* value) { SetLicenseType(value); return *this;}
209 
213  inline const Aws::String& GetHypervisor() const{ return m_hypervisor; }
214 
218  inline void SetHypervisor(const Aws::String& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
219 
223  inline void SetHypervisor(Aws::String&& value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
224 
228  inline void SetHypervisor(const char* value) { m_hypervisorHasBeenSet = true; m_hypervisor.assign(value); }
229 
233  inline ImportImageRequest& WithHypervisor(const Aws::String& value) { SetHypervisor(value); return *this;}
234 
238  inline ImportImageRequest& WithHypervisor(Aws::String&& value) { SetHypervisor(value); return *this;}
239 
243  inline ImportImageRequest& WithHypervisor(const char* value) { SetHypervisor(value); return *this;}
244 
249  inline const Aws::String& GetArchitecture() const{ return m_architecture; }
250 
255  inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
256 
261  inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = value; }
262 
267  inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
268 
273  inline ImportImageRequest& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
274 
279  inline ImportImageRequest& WithArchitecture(Aws::String&& value) { SetArchitecture(value); return *this;}
280 
285  inline ImportImageRequest& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
286 
291  inline const Aws::String& GetPlatform() const{ return m_platform; }
292 
297  inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
298 
303  inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = value; }
304 
309  inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
310 
315  inline ImportImageRequest& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
316 
321  inline ImportImageRequest& WithPlatform(Aws::String&& value) { SetPlatform(value); return *this;}
322 
327  inline ImportImageRequest& WithPlatform(const char* value) { SetPlatform(value); return *this;}
328 
332  inline const ClientData& GetClientData() const{ return m_clientData; }
333 
337  inline void SetClientData(const ClientData& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
338 
342  inline void SetClientData(ClientData&& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
343 
347  inline ImportImageRequest& WithClientData(const ClientData& value) { SetClientData(value); return *this;}
348 
352  inline ImportImageRequest& WithClientData(ClientData&& value) { SetClientData(value); return *this;}
353 
357  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
358 
362  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
363 
367  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
368 
372  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
373 
377  inline ImportImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
378 
382  inline ImportImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
383 
387  inline ImportImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
388 
392  inline const Aws::String& GetRoleName() const{ return m_roleName; }
393 
397  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
398 
402  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
403 
407  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
408 
412  inline ImportImageRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
413 
417  inline ImportImageRequest& WithRoleName(Aws::String&& value) { SetRoleName(value); return *this;}
418 
422  inline ImportImageRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
423 
424  private:
425  bool m_dryRun;
426  bool m_dryRunHasBeenSet;
427  Aws::String m_description;
428  bool m_descriptionHasBeenSet;
429  Aws::Vector<ImageDiskContainer> m_diskContainers;
430  bool m_diskContainersHasBeenSet;
431  Aws::String m_licenseType;
432  bool m_licenseTypeHasBeenSet;
433  Aws::String m_hypervisor;
434  bool m_hypervisorHasBeenSet;
435  Aws::String m_architecture;
436  bool m_architectureHasBeenSet;
437  Aws::String m_platform;
438  bool m_platformHasBeenSet;
439  ClientData m_clientData;
440  bool m_clientDataHasBeenSet;
441  Aws::String m_clientToken;
442  bool m_clientTokenHasBeenSet;
443  Aws::String m_roleName;
444  bool m_roleNameHasBeenSet;
445  };
446 
447 } // namespace Model
448 } // namespace EC2
449 } // namespace Aws
void SetPlatform(const Aws::String &value)
ImportImageRequest & WithClientData(const ClientData &value)
const Aws::String & GetDescription() const
void SetLicenseType(const char *value)
const Aws::Vector< ImageDiskContainer > & GetDiskContainers() const
ImportImageRequest & WithLicenseType(const char *value)
ImportImageRequest & WithPlatform(Aws::String &&value)
ImportImageRequest & WithDescription(Aws::String &&value)
void SetDescription(const char *value)
void SetDescription(const Aws::String &value)
ImportImageRequest & WithDiskContainers(const Aws::Vector< ImageDiskContainer > &value)
const Aws::String & GetPlatform() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ImportImageRequest & WithDiskContainers(Aws::Vector< ImageDiskContainer > &&value)
ImportImageRequest & AddDiskContainers(ImageDiskContainer &&value)
const Aws::String & GetRoleName() const
ImportImageRequest & WithHypervisor(const char *value)
ImportImageRequest & WithClientToken(const Aws::String &value)
ImportImageRequest & WithArchitecture(const char *value)
const Aws::String & GetHypervisor() const
void SetClientData(ClientData &&value)
ImportImageRequest & WithHypervisor(const Aws::String &value)
void SetLicenseType(const Aws::String &value)
ImportImageRequest & WithRoleName(const Aws::String &value)
ImportImageRequest & WithPlatform(const char *value)
ImportImageRequest & WithRoleName(const char *value)
const ClientData & GetClientData() const
ImportImageRequest & WithLicenseType(Aws::String &&value)
ImportImageRequest & WithArchitecture(Aws::String &&value)
void SetRoleName(const Aws::String &value)
ImportImageRequest & WithDryRun(bool value)
ImportImageRequest & AddDiskContainers(const ImageDiskContainer &value)
void SetHypervisor(const Aws::String &value)
const Aws::String & GetLicenseType() const
ImportImageRequest & WithClientToken(Aws::String &&value)
void SetPlatform(Aws::String &&value)
void SetClientToken(const Aws::String &value)
void SetLicenseType(Aws::String &&value)
const Aws::String & GetClientToken() const
ImportImageRequest & WithArchitecture(const Aws::String &value)
void SetArchitecture(const Aws::String &value)
void SetClientToken(const char *value)
ImportImageRequest & WithPlatform(const Aws::String &value)
ImportImageRequest & WithHypervisor(Aws::String &&value)
void SetArchitecture(Aws::String &&value)
ImportImageRequest & WithLicenseType(const Aws::String &value)
ImportImageRequest & WithClientToken(const char *value)
void SetClientData(const ClientData &value)
ImportImageRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ImportImageRequest & WithClientData(ClientData &&value)
void SetRoleName(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetHypervisor(Aws::String &&value)
void SetDiskContainers(const Aws::Vector< ImageDiskContainer > &value)
void SetDiskContainers(Aws::Vector< ImageDiskContainer > &&value)
ImportImageRequest & WithDescription(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetClientToken(Aws::String &&value)
ImportImageRequest & WithRoleName(Aws::String &&value)
const Aws::String & GetArchitecture() const
JSON (JavaScript Object Notation).
void SetArchitecture(const char *value)