AWS SDK for C++  1.9.129
AWS SDK for C++
ImportInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
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 "ImportInstance"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetDescription() const{ return m_description; }
47 
51  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
52 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
61  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 
66  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 
71  inline ImportInstanceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 
76  inline ImportInstanceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 
81  inline ImportInstanceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82 
83 
87  inline const Aws::Vector<DiskImage>& GetDiskImages() const{ return m_diskImages; }
88 
92  inline bool DiskImagesHasBeenSet() const { return m_diskImagesHasBeenSet; }
93 
97  inline void SetDiskImages(const Aws::Vector<DiskImage>& value) { m_diskImagesHasBeenSet = true; m_diskImages = value; }
98 
102  inline void SetDiskImages(Aws::Vector<DiskImage>&& value) { m_diskImagesHasBeenSet = true; m_diskImages = std::move(value); }
103 
107  inline ImportInstanceRequest& WithDiskImages(const Aws::Vector<DiskImage>& value) { SetDiskImages(value); return *this;}
108 
112  inline ImportInstanceRequest& WithDiskImages(Aws::Vector<DiskImage>&& value) { SetDiskImages(std::move(value)); return *this;}
113 
117  inline ImportInstanceRequest& AddDiskImages(const DiskImage& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(value); return *this; }
118 
122  inline ImportInstanceRequest& AddDiskImages(DiskImage&& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(std::move(value)); return *this; }
123 
124 
131  inline bool GetDryRun() const{ return m_dryRun; }
132 
139  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
140 
147  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
148 
155  inline ImportInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
156 
157 
161  inline const ImportInstanceLaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; }
162 
166  inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; }
167 
171  inline void SetLaunchSpecification(const ImportInstanceLaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
172 
176  inline void SetLaunchSpecification(ImportInstanceLaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = std::move(value); }
177 
181  inline ImportInstanceRequest& WithLaunchSpecification(const ImportInstanceLaunchSpecification& value) { SetLaunchSpecification(value); return *this;}
182 
186  inline ImportInstanceRequest& WithLaunchSpecification(ImportInstanceLaunchSpecification&& value) { SetLaunchSpecification(std::move(value)); return *this;}
187 
188 
192  inline const PlatformValues& GetPlatform() const{ return m_platform; }
193 
197  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
198 
202  inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
203 
207  inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
208 
212  inline ImportInstanceRequest& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
213 
217  inline ImportInstanceRequest& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;}
218 
219  private:
220 
221  Aws::String m_description;
222  bool m_descriptionHasBeenSet;
223 
224  Aws::Vector<DiskImage> m_diskImages;
225  bool m_diskImagesHasBeenSet;
226 
227  bool m_dryRun;
228  bool m_dryRunHasBeenSet;
229 
230  ImportInstanceLaunchSpecification m_launchSpecification;
231  bool m_launchSpecificationHasBeenSet;
232 
233  PlatformValues m_platform;
234  bool m_platformHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace EC2
239 } // namespace Aws
Aws::EC2::Model::ImportInstanceRequest::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: ImportInstanceRequest.h:197
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ImportInstanceRequest::WithDescription
ImportInstanceRequest & WithDescription(const Aws::String &value)
Definition: ImportInstanceRequest.h:71
Aws::EC2::Model::ImportInstanceRequest::AddDiskImages
ImportInstanceRequest & AddDiskImages(const DiskImage &value)
Definition: ImportInstanceRequest.h:117
Aws::EC2::Model::ImportInstanceLaunchSpecification
Definition: ImportInstanceLaunchSpecification.h:39
Aws::EC2::Model::ImportInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ImportInstanceRequest.h:34
Aws::EC2::Model::ImportInstanceRequest::WithLaunchSpecification
ImportInstanceRequest & WithLaunchSpecification(const ImportInstanceLaunchSpecification &value)
Definition: ImportInstanceRequest.h:181
Aws::EC2::Model::ImportInstanceRequest::WithDiskImages
ImportInstanceRequest & WithDiskImages(const Aws::Vector< DiskImage > &value)
Definition: ImportInstanceRequest.h:107
Aws::EC2::Model::ImportInstanceRequest
Definition: ImportInstanceRequest.h:26
Aws::EC2::Model::ImportInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ImportInstanceRequest::SetDescription
void SetDescription(const char *value)
Definition: ImportInstanceRequest.h:66
Aws::EC2::Model::ImportInstanceRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ImportInstanceRequest.h:139
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PlatformValues
PlatformValues
Definition: PlatformValues.h:17
Aws::EC2::Model::ImportInstanceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImportInstanceRequest.h:56
AWSVector.h
Aws::EC2::Model::ImportInstanceRequest::WithPlatform
ImportInstanceRequest & WithPlatform(const PlatformValues &value)
Definition: ImportInstanceRequest.h:212
Aws::EC2::Model::ImportInstanceRequest::GetLaunchSpecification
const ImportInstanceLaunchSpecification & GetLaunchSpecification() const
Definition: ImportInstanceRequest.h:161
Aws::EC2::Model::ImportInstanceRequest::WithDescription
ImportInstanceRequest & WithDescription(Aws::String &&value)
Definition: ImportInstanceRequest.h:76
Aws::EC2::Model::ImportInstanceRequest::DiskImagesHasBeenSet
bool DiskImagesHasBeenSet() const
Definition: ImportInstanceRequest.h:92
Aws::EC2::Model::ImportInstanceRequest::SetLaunchSpecification
void SetLaunchSpecification(const ImportInstanceLaunchSpecification &value)
Definition: ImportInstanceRequest.h:171
Aws::EC2::Model::ImportInstanceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImportInstanceRequest.h:61
Aws::EC2::Model::ImportInstanceRequest::WithDryRun
ImportInstanceRequest & WithDryRun(bool value)
Definition: ImportInstanceRequest.h:155
Aws::EC2::Model::ImportInstanceRequest::LaunchSpecificationHasBeenSet
bool LaunchSpecificationHasBeenSet() const
Definition: ImportInstanceRequest.h:166
Aws::EC2::Model::ImportInstanceRequest::WithPlatform
ImportInstanceRequest & WithPlatform(PlatformValues &&value)
Definition: ImportInstanceRequest.h:217
Aws::EC2::Model::ImportInstanceRequest::SetDryRun
void SetDryRun(bool value)
Definition: ImportInstanceRequest.h:147
PlatformValues.h
Aws::EC2::Model::ImportInstanceRequest::ImportInstanceRequest
ImportInstanceRequest()
EC2Request.h
Aws::EC2::Model::ImportInstanceRequest::WithDiskImages
ImportInstanceRequest & WithDiskImages(Aws::Vector< DiskImage > &&value)
Definition: ImportInstanceRequest.h:112
AWSString.h
Aws::EC2::Model::ImportInstanceRequest::GetPlatform
const PlatformValues & GetPlatform() const
Definition: ImportInstanceRequest.h:192
Aws::EC2::Model::ImportInstanceRequest::GetDryRun
bool GetDryRun() const
Definition: ImportInstanceRequest.h:131
Aws::EC2::Model::ImportInstanceRequest::GetDiskImages
const Aws::Vector< DiskImage > & GetDiskImages() const
Definition: ImportInstanceRequest.h:87
Aws::EC2::Model::ImportInstanceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ImportInstanceRequest.h:46
Aws::EC2::Model::ImportInstanceRequest::SetDiskImages
void SetDiskImages(const Aws::Vector< DiskImage > &value)
Definition: ImportInstanceRequest.h:97
Aws::EC2::Model::ImportInstanceRequest::WithLaunchSpecification
ImportInstanceRequest & WithLaunchSpecification(ImportInstanceLaunchSpecification &&value)
Definition: ImportInstanceRequest.h:186
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ImportInstanceRequest::SetPlatform
void SetPlatform(const PlatformValues &value)
Definition: ImportInstanceRequest.h:202
Aws::EC2::Model::ImportInstanceRequest::AddDiskImages
ImportInstanceRequest & AddDiskImages(DiskImage &&value)
Definition: ImportInstanceRequest.h:122
Aws::EC2::Model::ImportInstanceRequest::WithDescription
ImportInstanceRequest & WithDescription(const char *value)
Definition: ImportInstanceRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ImportInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ImportInstanceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImportInstanceRequest.h:51
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DiskImage
Definition: DiskImage.h:34
ImportInstanceLaunchSpecification.h
Aws::EC2::Model::ImportInstanceRequest::SetDiskImages
void SetDiskImages(Aws::Vector< DiskImage > &&value)
Definition: ImportInstanceRequest.h:102
Aws::EC2::Model::ImportInstanceRequest::SetPlatform
void SetPlatform(PlatformValues &&value)
Definition: ImportInstanceRequest.h:207
Aws::EC2::Model::ImportInstanceRequest::SetLaunchSpecification
void SetLaunchSpecification(ImportInstanceLaunchSpecification &&value)
Definition: ImportInstanceRequest.h:176
EC2_EXPORTS.h
DiskImage.h