AWS SDK for C++  1.9.72
AWS SDK for C++
ExportImageRequest.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 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace EC2
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ExportImage"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 
52  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 
57  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
58 
62  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
63 
67  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
68 
72  inline ExportImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
73 
77  inline ExportImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
78 
82  inline ExportImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
83 
84 
89  inline const Aws::String& GetDescription() const{ return m_description; }
90 
95  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 
101  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
102 
107  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 
113  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
114 
119  inline ExportImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
120 
125  inline ExportImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
126 
131  inline ExportImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
132 
133 
137  inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
138 
142  inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
143 
147  inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
148 
152  inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = std::move(value); }
153 
157  inline ExportImageRequest& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
158 
162  inline ExportImageRequest& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;}
163 
164 
171  inline bool GetDryRun() const{ return m_dryRun; }
172 
179  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
180 
187  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
188 
195  inline ExportImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
196 
197 
201  inline const Aws::String& GetImageId() const{ return m_imageId; }
202 
206  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
207 
211  inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
212 
216  inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
217 
221  inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
222 
226  inline ExportImageRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
227 
231  inline ExportImageRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
232 
236  inline ExportImageRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
237 
238 
244  inline const ExportTaskS3LocationRequest& GetS3ExportLocation() const{ return m_s3ExportLocation; }
245 
251  inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
252 
258  inline void SetS3ExportLocation(const ExportTaskS3LocationRequest& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = value; }
259 
265  inline void SetS3ExportLocation(ExportTaskS3LocationRequest&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::move(value); }
266 
272  inline ExportImageRequest& WithS3ExportLocation(const ExportTaskS3LocationRequest& value) { SetS3ExportLocation(value); return *this;}
273 
279  inline ExportImageRequest& WithS3ExportLocation(ExportTaskS3LocationRequest&& value) { SetS3ExportLocation(std::move(value)); return *this;}
280 
281 
287  inline const Aws::String& GetRoleName() const{ return m_roleName; }
288 
294  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
295 
301  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
302 
308  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
309 
315  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
316 
322  inline ExportImageRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
323 
329  inline ExportImageRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
330 
336  inline ExportImageRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
337 
338 
342  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
343 
347  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
348 
352  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
353 
357  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
358 
362  inline ExportImageRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
363 
367  inline ExportImageRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
368 
372  inline ExportImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
373 
377  inline ExportImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
378 
379  private:
380 
381  Aws::String m_clientToken;
382  bool m_clientTokenHasBeenSet;
383 
384  Aws::String m_description;
385  bool m_descriptionHasBeenSet;
386 
387  DiskImageFormat m_diskImageFormat;
388  bool m_diskImageFormatHasBeenSet;
389 
390  bool m_dryRun;
391  bool m_dryRunHasBeenSet;
392 
393  Aws::String m_imageId;
394  bool m_imageIdHasBeenSet;
395 
396  ExportTaskS3LocationRequest m_s3ExportLocation;
397  bool m_s3ExportLocationHasBeenSet;
398 
399  Aws::String m_roleName;
400  bool m_roleNameHasBeenSet;
401 
402  Aws::Vector<TagSpecification> m_tagSpecifications;
403  bool m_tagSpecificationsHasBeenSet;
404  };
405 
406 } // namespace Model
407 } // namespace EC2
408 } // namespace Aws
Aws::EC2::Model::ExportImageRequest::WithS3ExportLocation
ExportImageRequest & WithS3ExportLocation(ExportTaskS3LocationRequest &&value)
Definition: ExportImageRequest.h:279
TagSpecification.h
Aws::EC2::Model::ExportImageRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: ExportImageRequest.h:342
Aws::EC2::Model::ExportImageRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: ExportImageRequest.h:52
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ExportImageRequest::WithImageId
ExportImageRequest & WithImageId(Aws::String &&value)
Definition: ExportImageRequest.h:231
Aws::EC2::Model::ExportImageRequest::SetClientToken
void SetClientToken(const char *value)
Definition: ExportImageRequest.h:67
Aws::EC2::Model::ExportImageRequest::WithDescription
ExportImageRequest & WithDescription(const char *value)
Definition: ExportImageRequest.h:131
Aws::EC2::Model::ExportImageRequest::ExportImageRequest
ExportImageRequest()
Aws::EC2::Model::ExportImageRequest::SetS3ExportLocation
void SetS3ExportLocation(ExportTaskS3LocationRequest &&value)
Definition: ExportImageRequest.h:265
Aws::EC2::Model::ExportImageRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: ExportImageRequest.h:62
Aws::EC2::Model::ExportImageRequest::SetS3ExportLocation
void SetS3ExportLocation(const ExportTaskS3LocationRequest &value)
Definition: ExportImageRequest.h:258
Aws::EC2::Model::ExportImageRequest::DiskImageFormatHasBeenSet
bool DiskImageFormatHasBeenSet() const
Definition: ExportImageRequest.h:142
Aws::EC2::Model::ExportTaskS3LocationRequest
Definition: ExportTaskS3LocationRequest.h:33
Aws::EC2::Model::ExportImageRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ExportImageRequest.h:101
Aws::EC2::Model::ExportImageRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ExportImageRequest.h:179
Aws::EC2::Model::ExportImageRequest::GetImageId
const Aws::String & GetImageId() const
Definition: ExportImageRequest.h:201
Aws::EC2::Model::ExportImageRequest::WithDiskImageFormat
ExportImageRequest & WithDiskImageFormat(const DiskImageFormat &value)
Definition: ExportImageRequest.h:157
Aws::EC2::Model::ExportImageRequest::SetRoleName
void SetRoleName(const char *value)
Definition: ExportImageRequest.h:315
Aws::EC2::Model::ExportImageRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ExportImageRequest.h:352
Aws::EC2::Model::ExportImageRequest::WithS3ExportLocation
ExportImageRequest & WithS3ExportLocation(const ExportTaskS3LocationRequest &value)
Definition: ExportImageRequest.h:272
Aws::EC2::Model::ExportImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ExportImageRequest
Definition: ExportImageRequest.h:27
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ExportImageRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: ExportImageRequest.h:357
Aws::EC2::Model::ExportImageRequest::WithClientToken
ExportImageRequest & WithClientToken(const char *value)
Definition: ExportImageRequest.h:82
Aws::EC2::Model::ExportImageRequest::GetDiskImageFormat
const DiskImageFormat & GetDiskImageFormat() const
Definition: ExportImageRequest.h:137
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ExportImageRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: ExportImageRequest.h:47
Aws::EC2::Model::ExportImageRequest::SetImageId
void SetImageId(const char *value)
Definition: ExportImageRequest.h:221
Aws::EC2::Model::ExportImageRequest::WithRoleName
ExportImageRequest & WithRoleName(Aws::String &&value)
Definition: ExportImageRequest.h:329
Aws::EC2::Model::ExportImageRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: ExportImageRequest.h:301
Aws::EC2::Model::ExportImageRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: ExportImageRequest.h:347
AWSVector.h
Aws::EC2::Model::ExportImageRequest::SetImageId
void SetImageId(Aws::String &&value)
Definition: ExportImageRequest.h:216
Aws::EC2::Model::ExportImageRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: ExportImageRequest.h:294
Aws::EC2::Model::ExportImageRequest::WithDiskImageFormat
ExportImageRequest & WithDiskImageFormat(DiskImageFormat &&value)
Definition: ExportImageRequest.h:162
Aws::EC2::Model::ExportImageRequest::S3ExportLocationHasBeenSet
bool S3ExportLocationHasBeenSet() const
Definition: ExportImageRequest.h:251
Aws::EC2::Model::ExportImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ExportImageRequest.h:35
Aws::EC2::Model::ExportImageRequest::WithClientToken
ExportImageRequest & WithClientToken(Aws::String &&value)
Definition: ExportImageRequest.h:77
Aws::EC2::Model::ExportImageRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ExportImageRequest.h:95
ExportTaskS3LocationRequest.h
Aws::EC2::Model::ExportImageRequest::SetDiskImageFormat
void SetDiskImageFormat(DiskImageFormat &&value)
Definition: ExportImageRequest.h:152
Aws::EC2::Model::ExportImageRequest::WithTagSpecifications
ExportImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: ExportImageRequest.h:367
Aws::EC2::Model::ExportImageRequest::SetDescription
void SetDescription(const char *value)
Definition: ExportImageRequest.h:113
Aws::EC2::Model::DiskImageFormat
DiskImageFormat
Definition: DiskImageFormat.h:17
Aws::EC2::Model::ExportImageRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: ExportImageRequest.h:57
Aws::EC2::Model::ExportImageRequest::AddTagSpecifications
ExportImageRequest & AddTagSpecifications(TagSpecification &&value)
Definition: ExportImageRequest.h:377
EC2Request.h
Aws::EC2::Model::ExportImageRequest::SetImageId
void SetImageId(const Aws::String &value)
Definition: ExportImageRequest.h:211
Aws::EC2::Model::ExportImageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::ExportImageRequest::SetDryRun
void SetDryRun(bool value)
Definition: ExportImageRequest.h:187
Aws::EC2::Model::ExportImageRequest::WithImageId
ExportImageRequest & WithImageId(const char *value)
Definition: ExportImageRequest.h:236
Aws::EC2::Model::ExportImageRequest::WithTagSpecifications
ExportImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ExportImageRequest.h:362
Aws::EC2::Model::ExportImageRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: ExportImageRequest.h:287
Aws::EC2::Model::ExportImageRequest::WithDryRun
ExportImageRequest & WithDryRun(bool value)
Definition: ExportImageRequest.h:195
Aws::EC2::Model::ExportImageRequest::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: ExportImageRequest.h:206
Aws::EC2::Model::ExportImageRequest::GetS3ExportLocation
const ExportTaskS3LocationRequest & GetS3ExportLocation() const
Definition: ExportImageRequest.h:244
Aws::EC2::Model::ExportImageRequest::WithDescription
ExportImageRequest & WithDescription(Aws::String &&value)
Definition: ExportImageRequest.h:125
Aws::EC2::Model::ExportImageRequest::WithDescription
ExportImageRequest & WithDescription(const Aws::String &value)
Definition: ExportImageRequest.h:119
Aws::EC2::Model::ExportImageRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ExportImageRequest.h:107
Aws::EC2::Model::ExportImageRequest::SetDiskImageFormat
void SetDiskImageFormat(const DiskImageFormat &value)
Definition: ExportImageRequest.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ExportImageRequest::WithClientToken
ExportImageRequest & WithClientToken(const Aws::String &value)
Definition: ExportImageRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ExportImageRequest::WithRoleName
ExportImageRequest & WithRoleName(const Aws::String &value)
Definition: ExportImageRequest.h:322
Aws::EC2::Model::ExportImageRequest::WithRoleName
ExportImageRequest & WithRoleName(const char *value)
Definition: ExportImageRequest.h:336
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ExportImageRequest::AddTagSpecifications
ExportImageRequest & AddTagSpecifications(const TagSpecification &value)
Definition: ExportImageRequest.h:372
UUID.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::ExportImageRequest::GetDryRun
bool GetDryRun() const
Definition: ExportImageRequest.h:171
DiskImageFormat.h
EC2_EXPORTS.h
Aws::EC2::Model::ExportImageRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ExportImageRequest.h:89
Aws::EC2::Model::ExportImageRequest::WithImageId
ExportImageRequest & WithImageId(const Aws::String &value)
Definition: ExportImageRequest.h:226
Aws::EC2::Model::ExportImageRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: ExportImageRequest.h:308