AWS SDK for C++  0.12.9
AWS SDK for C++
ImportInstanceRequest.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>
23 
24 namespace Aws
25 {
26 namespace EC2
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
55 
62  inline ImportInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
63 
67  inline const Aws::String& GetDescription() const{ return m_description; }
68 
72  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 
77  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 
82  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 
87  inline ImportInstanceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
88 
92  inline ImportInstanceRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
93 
97  inline ImportInstanceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
98 
102  inline const ImportInstanceLaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; }
103 
107  inline void SetLaunchSpecification(const ImportInstanceLaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
108 
112  inline void SetLaunchSpecification(ImportInstanceLaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
113 
117  inline ImportInstanceRequest& WithLaunchSpecification(const ImportInstanceLaunchSpecification& value) { SetLaunchSpecification(value); return *this;}
118 
122  inline ImportInstanceRequest& WithLaunchSpecification(ImportInstanceLaunchSpecification&& value) { SetLaunchSpecification(value); return *this;}
123 
127  inline const Aws::Vector<DiskImage>& GetDiskImages() const{ return m_diskImages; }
128 
132  inline void SetDiskImages(const Aws::Vector<DiskImage>& value) { m_diskImagesHasBeenSet = true; m_diskImages = value; }
133 
137  inline void SetDiskImages(Aws::Vector<DiskImage>&& value) { m_diskImagesHasBeenSet = true; m_diskImages = value; }
138 
142  inline ImportInstanceRequest& WithDiskImages(const Aws::Vector<DiskImage>& value) { SetDiskImages(value); return *this;}
143 
147  inline ImportInstanceRequest& WithDiskImages(Aws::Vector<DiskImage>&& value) { SetDiskImages(value); return *this;}
148 
152  inline ImportInstanceRequest& AddDiskImages(const DiskImage& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(value); return *this; }
153 
157  inline ImportInstanceRequest& AddDiskImages(DiskImage&& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(value); return *this; }
158 
162  inline const PlatformValues& GetPlatform() const{ return m_platform; }
163 
167  inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
168 
172  inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = value; }
173 
177  inline ImportInstanceRequest& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
178 
182  inline ImportInstanceRequest& WithPlatform(PlatformValues&& value) { SetPlatform(value); return *this;}
183 
184  private:
185  bool m_dryRun;
186  bool m_dryRunHasBeenSet;
187  Aws::String m_description;
188  bool m_descriptionHasBeenSet;
189  ImportInstanceLaunchSpecification m_launchSpecification;
190  bool m_launchSpecificationHasBeenSet;
191  Aws::Vector<DiskImage> m_diskImages;
192  bool m_diskImagesHasBeenSet;
193  PlatformValues m_platform;
194  bool m_platformHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace EC2
199 } // namespace Aws
const PlatformValues & GetPlatform() const
ImportInstanceRequest & WithPlatform(const PlatformValues &value)
ImportInstanceRequest & AddDiskImages(const DiskImage &value)
const Aws::Vector< DiskImage > & GetDiskImages() const
ImportInstanceRequest & WithDescription(Aws::String &&value)
void SetDiskImages(const Aws::Vector< DiskImage > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetDescription() const
ImportInstanceRequest & WithDryRun(bool value)
const ImportInstanceLaunchSpecification & GetLaunchSpecification() const
ImportInstanceRequest & WithDiskImages(const Aws::Vector< DiskImage > &value)
void SetDescription(const Aws::String &value)
void SetLaunchSpecification(ImportInstanceLaunchSpecification &&value)
ImportInstanceRequest & WithPlatform(PlatformValues &&value)
void SetPlatform(PlatformValues &&value)
ImportInstanceRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLaunchSpecification(const ImportInstanceLaunchSpecification &value)
void SetPlatform(const PlatformValues &value)
ImportInstanceRequest & WithDescription(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetDiskImages(Aws::Vector< DiskImage > &&value)
ImportInstanceRequest & AddDiskImages(DiskImage &&value)
ImportInstanceRequest & WithLaunchSpecification(const ImportInstanceLaunchSpecification &value)
ImportInstanceRequest & WithLaunchSpecification(ImportInstanceLaunchSpecification &&value)
ImportInstanceRequest & WithDiskImages(Aws::Vector< DiskImage > &&value)
JSON (JavaScript Object Notation).