AWS SDK for C++  1.9.71
AWS SDK for C++
ExportImageResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 template<typename RESULT_TYPE>
19 class AmazonWebServiceResult;
20 
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlDocument;
26 } // namespace Xml
27 } // namespace Utils
28 namespace EC2
29 {
30 namespace Model
31 {
33  {
34  public:
38 
39 
43  inline const Aws::String& GetDescription() const{ return m_description; }
44 
48  inline void SetDescription(const Aws::String& value) { m_description = value; }
49 
53  inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
54 
58  inline void SetDescription(const char* value) { m_description.assign(value); }
59 
63  inline ExportImageResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 
68  inline ExportImageResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 
73  inline ExportImageResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
74 
75 
79  inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
80 
84  inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormat = value; }
85 
89  inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormat = std::move(value); }
90 
94  inline ExportImageResponse& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
95 
99  inline ExportImageResponse& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;}
100 
101 
105  inline const Aws::String& GetExportImageTaskId() const{ return m_exportImageTaskId; }
106 
110  inline void SetExportImageTaskId(const Aws::String& value) { m_exportImageTaskId = value; }
111 
115  inline void SetExportImageTaskId(Aws::String&& value) { m_exportImageTaskId = std::move(value); }
116 
120  inline void SetExportImageTaskId(const char* value) { m_exportImageTaskId.assign(value); }
121 
125  inline ExportImageResponse& WithExportImageTaskId(const Aws::String& value) { SetExportImageTaskId(value); return *this;}
126 
130  inline ExportImageResponse& WithExportImageTaskId(Aws::String&& value) { SetExportImageTaskId(std::move(value)); return *this;}
131 
135  inline ExportImageResponse& WithExportImageTaskId(const char* value) { SetExportImageTaskId(value); return *this;}
136 
137 
141  inline const Aws::String& GetImageId() const{ return m_imageId; }
142 
146  inline void SetImageId(const Aws::String& value) { m_imageId = value; }
147 
151  inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
152 
156  inline void SetImageId(const char* value) { m_imageId.assign(value); }
157 
161  inline ExportImageResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
162 
166  inline ExportImageResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
167 
171  inline ExportImageResponse& WithImageId(const char* value) { SetImageId(value); return *this;}
172 
173 
178  inline const Aws::String& GetRoleName() const{ return m_roleName; }
179 
184  inline void SetRoleName(const Aws::String& value) { m_roleName = value; }
185 
190  inline void SetRoleName(Aws::String&& value) { m_roleName = std::move(value); }
191 
196  inline void SetRoleName(const char* value) { m_roleName.assign(value); }
197 
202  inline ExportImageResponse& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
203 
208  inline ExportImageResponse& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
209 
214  inline ExportImageResponse& WithRoleName(const char* value) { SetRoleName(value); return *this;}
215 
216 
220  inline const Aws::String& GetProgress() const{ return m_progress; }
221 
225  inline void SetProgress(const Aws::String& value) { m_progress = value; }
226 
230  inline void SetProgress(Aws::String&& value) { m_progress = std::move(value); }
231 
235  inline void SetProgress(const char* value) { m_progress.assign(value); }
236 
240  inline ExportImageResponse& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
241 
245  inline ExportImageResponse& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
246 
250  inline ExportImageResponse& WithProgress(const char* value) { SetProgress(value); return *this;}
251 
252 
256  inline const ExportTaskS3Location& GetS3ExportLocation() const{ return m_s3ExportLocation; }
257 
261  inline void SetS3ExportLocation(const ExportTaskS3Location& value) { m_s3ExportLocation = value; }
262 
266  inline void SetS3ExportLocation(ExportTaskS3Location&& value) { m_s3ExportLocation = std::move(value); }
267 
271  inline ExportImageResponse& WithS3ExportLocation(const ExportTaskS3Location& value) { SetS3ExportLocation(value); return *this;}
272 
276  inline ExportImageResponse& WithS3ExportLocation(ExportTaskS3Location&& value) { SetS3ExportLocation(std::move(value)); return *this;}
277 
278 
284  inline const Aws::String& GetStatus() const{ return m_status; }
285 
291  inline void SetStatus(const Aws::String& value) { m_status = value; }
292 
298  inline void SetStatus(Aws::String&& value) { m_status = std::move(value); }
299 
305  inline void SetStatus(const char* value) { m_status.assign(value); }
306 
312  inline ExportImageResponse& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
313 
319  inline ExportImageResponse& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
320 
326  inline ExportImageResponse& WithStatus(const char* value) { SetStatus(value); return *this;}
327 
328 
332  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
333 
337  inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
338 
342  inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); }
343 
347  inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
348 
352  inline ExportImageResponse& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
353 
357  inline ExportImageResponse& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
358 
362  inline ExportImageResponse& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
363 
364 
368  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
369 
373  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
374 
378  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
379 
383  inline ExportImageResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
384 
388  inline ExportImageResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
389 
393  inline ExportImageResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
394 
398  inline ExportImageResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
399 
400 
401 
402  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
403 
404 
405  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
406 
407 
408  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
409 
410 
411  inline ExportImageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
412 
413 
414  inline ExportImageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
415 
416  private:
417 
418  Aws::String m_description;
419 
420  DiskImageFormat m_diskImageFormat;
421 
422  Aws::String m_exportImageTaskId;
423 
424  Aws::String m_imageId;
425 
426  Aws::String m_roleName;
427 
428  Aws::String m_progress;
429 
430  ExportTaskS3Location m_s3ExportLocation;
431 
432  Aws::String m_status;
433 
434  Aws::String m_statusMessage;
435 
436  Aws::Vector<Tag> m_tags;
437 
438  ResponseMetadata m_responseMetadata;
439  };
440 
441 } // namespace Model
442 } // namespace EC2
443 } // namespace Aws
Aws::EC2::Model::ExportImageResponse::WithStatusMessage
ExportImageResponse & WithStatusMessage(const char *value)
Definition: ExportImageResponse.h:362
Aws::EC2::Model::ExportImageResponse::AddTags
ExportImageResponse & AddTags(const Tag &value)
Definition: ExportImageResponse.h:393
Aws::EC2::Model::ExportImageResponse
Definition: ExportImageResponse.h:33
Aws::EC2::Model::ExportTaskS3Location
Definition: ExportTaskS3Location.h:33
Aws::EC2::Model::ExportImageResponse::SetProgress
void SetProgress(const char *value)
Definition: ExportImageResponse.h:235
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ExportImageResponse::WithStatusMessage
ExportImageResponse & WithStatusMessage(Aws::String &&value)
Definition: ExportImageResponse.h:357
Aws::EC2::Model::ExportImageResponse::ExportImageResponse
ExportImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ExportImageResponse::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ExportImageResponse.h:373
Aws::EC2::Model::ExportImageResponse::WithDescription
ExportImageResponse & WithDescription(Aws::String &&value)
Definition: ExportImageResponse.h:68
Aws::EC2::Model::ExportImageResponse::SetDescription
void SetDescription(const char *value)
Definition: ExportImageResponse.h:58
Aws::EC2::Model::ExportImageResponse::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: ExportImageResponse.h:342
ExportTaskS3Location.h
Aws::EC2::Model::ExportImageResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ExportImageResponse.h:405
Aws::EC2::Model::ExportImageResponse::WithStatusMessage
ExportImageResponse & WithStatusMessage(const Aws::String &value)
Definition: ExportImageResponse.h:352
Aws::EC2::Model::ExportImageResponse::WithTags
ExportImageResponse & WithTags(Aws::Vector< Tag > &&value)
Definition: ExportImageResponse.h:388
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ExportImageResponse::SetDiskImageFormat
void SetDiskImageFormat(DiskImageFormat &&value)
Definition: ExportImageResponse.h:89
ResponseMetadata.h
Aws::EC2::Model::ExportImageResponse::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ExportImageResponse.h:378
Aws::EC2::Model::ExportImageResponse::WithRoleName
ExportImageResponse & WithRoleName(Aws::String &&value)
Definition: ExportImageResponse.h:208
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ExportImageResponse::WithDescription
ExportImageResponse & WithDescription(const char *value)
Definition: ExportImageResponse.h:73
Aws::EC2::Model::ExportImageResponse::SetStatus
void SetStatus(Aws::String &&value)
Definition: ExportImageResponse.h:298
AWSVector.h
Tag.h
Aws::EC2::Model::ExportImageResponse::GetProgress
const Aws::String & GetProgress() const
Definition: ExportImageResponse.h:220
Aws::EC2::Model::ExportImageResponse::GetRoleName
const Aws::String & GetRoleName() const
Definition: ExportImageResponse.h:178
Aws::EC2::Model::ExportImageResponse::WithRoleName
ExportImageResponse & WithRoleName(const char *value)
Definition: ExportImageResponse.h:214
Aws::EC2::Model::ExportImageResponse::WithExportImageTaskId
ExportImageResponse & WithExportImageTaskId(const char *value)
Definition: ExportImageResponse.h:135
Aws::EC2::Model::ExportImageResponse::WithS3ExportLocation
ExportImageResponse & WithS3ExportLocation(ExportTaskS3Location &&value)
Definition: ExportImageResponse.h:276
Aws::EC2::Model::ExportImageResponse::operator=
ExportImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ExportImageResponse::GetImageId
const Aws::String & GetImageId() const
Definition: ExportImageResponse.h:141
Aws::EC2::Model::ExportImageResponse::WithDescription
ExportImageResponse & WithDescription(const Aws::String &value)
Definition: ExportImageResponse.h:63
Aws::EC2::Model::ExportImageResponse::WithImageId
ExportImageResponse & WithImageId(Aws::String &&value)
Definition: ExportImageResponse.h:166
Aws::EC2::Model::ExportImageResponse::WithRoleName
ExportImageResponse & WithRoleName(const Aws::String &value)
Definition: ExportImageResponse.h:202
Aws::EC2::Model::ExportImageResponse::SetS3ExportLocation
void SetS3ExportLocation(ExportTaskS3Location &&value)
Definition: ExportImageResponse.h:266
Aws::EC2::Model::DiskImageFormat
DiskImageFormat
Definition: DiskImageFormat.h:17
Aws::EC2::Model::ExportImageResponse::SetImageId
void SetImageId(Aws::String &&value)
Definition: ExportImageResponse.h:151
Aws::EC2::Model::ExportImageResponse::WithExportImageTaskId
ExportImageResponse & WithExportImageTaskId(const Aws::String &value)
Definition: ExportImageResponse.h:125
Aws::EC2::Model::ExportImageResponse::GetDescription
const Aws::String & GetDescription() const
Definition: ExportImageResponse.h:43
Aws::EC2::Model::ExportImageResponse::WithStatus
ExportImageResponse & WithStatus(const Aws::String &value)
Definition: ExportImageResponse.h:312
Aws::EC2::Model::ExportImageResponse::SetProgress
void SetProgress(Aws::String &&value)
Definition: ExportImageResponse.h:230
Aws::EC2::Model::ExportImageResponse::WithDiskImageFormat
ExportImageResponse & WithDiskImageFormat(DiskImageFormat &&value)
Definition: ExportImageResponse.h:99
Aws::EC2::Model::ExportImageResponse::SetStatus
void SetStatus(const char *value)
Definition: ExportImageResponse.h:305
Aws::EC2::Model::ExportImageResponse::WithResponseMetadata
ExportImageResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ExportImageResponse.h:414
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::ExportImageResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ExportImageResponse.h:408
Aws::EC2::Model::ExportImageResponse::WithDiskImageFormat
ExportImageResponse & WithDiskImageFormat(const DiskImageFormat &value)
Definition: ExportImageResponse.h:94
AWSString.h
Aws::EC2::Model::ExportImageResponse::WithProgress
ExportImageResponse & WithProgress(Aws::String &&value)
Definition: ExportImageResponse.h:245
Aws::EC2::Model::ExportImageResponse::SetExportImageTaskId
void SetExportImageTaskId(const char *value)
Definition: ExportImageResponse.h:120
Aws::EC2::Model::ExportImageResponse::SetExportImageTaskId
void SetExportImageTaskId(Aws::String &&value)
Definition: ExportImageResponse.h:115
Aws::EC2::Model::ExportImageResponse::WithResponseMetadata
ExportImageResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ExportImageResponse.h:411
Aws::EC2::Model::ExportImageResponse::GetStatus
const Aws::String & GetStatus() const
Definition: ExportImageResponse.h:284
Aws::EC2::Model::ExportImageResponse::WithProgress
ExportImageResponse & WithProgress(const Aws::String &value)
Definition: ExportImageResponse.h:240
Aws::EC2::Model::ExportImageResponse::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: ExportImageResponse.h:347
Aws::EC2::Model::ExportImageResponse::SetStatus
void SetStatus(const Aws::String &value)
Definition: ExportImageResponse.h:291
Aws::EC2::Model::ExportImageResponse::SetImageId
void SetImageId(const Aws::String &value)
Definition: ExportImageResponse.h:146
Aws::EC2::Model::ExportImageResponse::WithStatus
ExportImageResponse & WithStatus(const char *value)
Definition: ExportImageResponse.h:326
Aws::EC2::Model::ExportImageResponse::WithProgress
ExportImageResponse & WithProgress(const char *value)
Definition: ExportImageResponse.h:250
Aws::EC2::Model::ExportImageResponse::WithTags
ExportImageResponse & WithTags(const Aws::Vector< Tag > &value)
Definition: ExportImageResponse.h:383
Aws::EC2::Model::ExportImageResponse::WithStatus
ExportImageResponse & WithStatus(Aws::String &&value)
Definition: ExportImageResponse.h:319
Aws::EC2::Model::ExportImageResponse::SetDiskImageFormat
void SetDiskImageFormat(const DiskImageFormat &value)
Definition: ExportImageResponse.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ExportImageResponse::WithImageId
ExportImageResponse & WithImageId(const char *value)
Definition: ExportImageResponse.h:171
Aws::EC2::Model::ExportImageResponse::WithS3ExportLocation
ExportImageResponse & WithS3ExportLocation(const ExportTaskS3Location &value)
Definition: ExportImageResponse.h:271
Aws::EC2::Model::ExportImageResponse::SetRoleName
void SetRoleName(const char *value)
Definition: ExportImageResponse.h:196
Aws::EC2::Model::ExportImageResponse::SetExportImageTaskId
void SetExportImageTaskId(const Aws::String &value)
Definition: ExportImageResponse.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ExportImageResponse::GetDiskImageFormat
const DiskImageFormat & GetDiskImageFormat() const
Definition: ExportImageResponse.h:79
Aws::EC2::Model::ExportImageResponse::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: ExportImageResponse.h:184
Aws::EC2::Model::ExportImageResponse::WithExportImageTaskId
ExportImageResponse & WithExportImageTaskId(Aws::String &&value)
Definition: ExportImageResponse.h:130
Aws::EC2::Model::ExportImageResponse::SetS3ExportLocation
void SetS3ExportLocation(const ExportTaskS3Location &value)
Definition: ExportImageResponse.h:261
Aws::EC2::Model::ExportImageResponse::SetImageId
void SetImageId(const char *value)
Definition: ExportImageResponse.h:156
Aws::EC2::Model::ExportImageResponse::SetDescription
void SetDescription(const Aws::String &value)
Definition: ExportImageResponse.h:48
Aws::EC2::Model::ExportImageResponse::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: ExportImageResponse.h:337
Aws::EC2::Model::ExportImageResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ExportImageResponse.h:402
Aws::EC2::Model::ExportImageResponse::GetExportImageTaskId
const Aws::String & GetExportImageTaskId() const
Definition: ExportImageResponse.h:105
Aws::EC2::Model::ExportImageResponse::AddTags
ExportImageResponse & AddTags(Tag &&value)
Definition: ExportImageResponse.h:398
Aws::EC2::Model::ExportImageResponse::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ExportImageResponse.h:368
Aws::EC2::Model::ExportImageResponse::WithImageId
ExportImageResponse & WithImageId(const Aws::String &value)
Definition: ExportImageResponse.h:161
DiskImageFormat.h
EC2_EXPORTS.h
Aws::EC2::Model::ExportImageResponse::GetS3ExportLocation
const ExportTaskS3Location & GetS3ExportLocation() const
Definition: ExportImageResponse.h:256
Aws::EC2::Model::ExportImageResponse::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: ExportImageResponse.h:190
Aws::EC2::Model::ExportImageResponse::SetProgress
void SetProgress(const Aws::String &value)
Definition: ExportImageResponse.h:225
Aws::EC2::Model::ExportImageResponse::ExportImageResponse
ExportImageResponse()
Aws::EC2::Model::ExportImageResponse::SetDescription
void SetDescription(Aws::String &&value)
Definition: ExportImageResponse.h:53
Aws::EC2::Model::ExportImageResponse::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: ExportImageResponse.h:332