AWS SDK for C++  1.9.67
AWS SDK for C++
ExportImageTask.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetDescription() const{ return m_description; }
49 
53  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 
58  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 
63  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 
68  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 
73  inline ExportImageTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
74 
78  inline ExportImageTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 
83  inline ExportImageTask& WithDescription(const char* value) { SetDescription(value); return *this;}
84 
85 
89  inline const Aws::String& GetExportImageTaskId() const{ return m_exportImageTaskId; }
90 
94  inline bool ExportImageTaskIdHasBeenSet() const { return m_exportImageTaskIdHasBeenSet; }
95 
99  inline void SetExportImageTaskId(const Aws::String& value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId = value; }
100 
104  inline void SetExportImageTaskId(Aws::String&& value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId = std::move(value); }
105 
109  inline void SetExportImageTaskId(const char* value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId.assign(value); }
110 
114  inline ExportImageTask& WithExportImageTaskId(const Aws::String& value) { SetExportImageTaskId(value); return *this;}
115 
119  inline ExportImageTask& WithExportImageTaskId(Aws::String&& value) { SetExportImageTaskId(std::move(value)); return *this;}
120 
124  inline ExportImageTask& WithExportImageTaskId(const char* value) { SetExportImageTaskId(value); return *this;}
125 
126 
130  inline const Aws::String& GetImageId() const{ return m_imageId; }
131 
135  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
136 
140  inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
141 
145  inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
146 
150  inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
151 
155  inline ExportImageTask& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
156 
160  inline ExportImageTask& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
161 
165  inline ExportImageTask& WithImageId(const char* value) { SetImageId(value); return *this;}
166 
167 
171  inline const Aws::String& GetProgress() const{ return m_progress; }
172 
176  inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
177 
181  inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
182 
186  inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
187 
191  inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
192 
196  inline ExportImageTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
197 
201  inline ExportImageTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
202 
206  inline ExportImageTask& WithProgress(const char* value) { SetProgress(value); return *this;}
207 
208 
212  inline const ExportTaskS3Location& GetS3ExportLocation() const{ return m_s3ExportLocation; }
213 
217  inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
218 
222  inline void SetS3ExportLocation(const ExportTaskS3Location& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = value; }
223 
227  inline void SetS3ExportLocation(ExportTaskS3Location&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::move(value); }
228 
232  inline ExportImageTask& WithS3ExportLocation(const ExportTaskS3Location& value) { SetS3ExportLocation(value); return *this;}
233 
237  inline ExportImageTask& WithS3ExportLocation(ExportTaskS3Location&& value) { SetS3ExportLocation(std::move(value)); return *this;}
238 
239 
245  inline const Aws::String& GetStatus() const{ return m_status; }
246 
252  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
253 
259  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
260 
266  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
267 
273  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
274 
280  inline ExportImageTask& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
281 
287  inline ExportImageTask& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
288 
294  inline ExportImageTask& WithStatus(const char* value) { SetStatus(value); return *this;}
295 
296 
300  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
301 
305  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
306 
310  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
311 
315  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
316 
320  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
321 
325  inline ExportImageTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
326 
330  inline ExportImageTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
331 
335  inline ExportImageTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
336 
337 
341  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
342 
346  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
347 
351  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
352 
356  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
357 
361  inline ExportImageTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
362 
366  inline ExportImageTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
367 
371  inline ExportImageTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
372 
376  inline ExportImageTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
377 
378  private:
379 
380  Aws::String m_description;
381  bool m_descriptionHasBeenSet;
382 
383  Aws::String m_exportImageTaskId;
384  bool m_exportImageTaskIdHasBeenSet;
385 
386  Aws::String m_imageId;
387  bool m_imageIdHasBeenSet;
388 
389  Aws::String m_progress;
390  bool m_progressHasBeenSet;
391 
392  ExportTaskS3Location m_s3ExportLocation;
393  bool m_s3ExportLocationHasBeenSet;
394 
395  Aws::String m_status;
396  bool m_statusHasBeenSet;
397 
398  Aws::String m_statusMessage;
399  bool m_statusMessageHasBeenSet;
400 
401  Aws::Vector<Tag> m_tags;
402  bool m_tagsHasBeenSet;
403  };
404 
405 } // namespace Model
406 } // namespace EC2
407 } // namespace Aws
Aws::EC2::Model::ExportImageTask::SetExportImageTaskId
void SetExportImageTaskId(const char *value)
Definition: ExportImageTask.h:109
Aws::EC2::Model::ExportImageTask::WithProgress
ExportImageTask & WithProgress(Aws::String &&value)
Definition: ExportImageTask.h:201
Aws::EC2::Model::ExportTaskS3Location
Definition: ExportTaskS3Location.h:33
Aws::EC2::Model::ExportImageTask::WithDescription
ExportImageTask & WithDescription(Aws::String &&value)
Definition: ExportImageTask.h:78
Aws::EC2::Model::ExportImageTask::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ExportImageTask
Definition: ExportImageTask.h:35
Aws::EC2::Model::ExportImageTask::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: ExportImageTask.h:305
Aws::EC2::Model::ExportImageTask::AddTags
ExportImageTask & AddTags(Tag &&value)
Definition: ExportImageTask.h:376
Aws::EC2::Model::ExportImageTask::WithDescription
ExportImageTask & WithDescription(const char *value)
Definition: ExportImageTask.h:83
Aws::EC2::Model::ExportImageTask::WithProgress
ExportImageTask & WithProgress(const Aws::String &value)
Definition: ExportImageTask.h:196
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::ExportImageTask::GetImageId
const Aws::String & GetImageId() const
Definition: ExportImageTask.h:130
Aws::EC2::Model::ExportImageTask::SetS3ExportLocation
void SetS3ExportLocation(const ExportTaskS3Location &value)
Definition: ExportImageTask.h:222
Aws::EC2::Model::ExportImageTask::WithProgress
ExportImageTask & WithProgress(const char *value)
Definition: ExportImageTask.h:206
Aws::EC2::Model::ExportImageTask::WithTags
ExportImageTask & WithTags(Aws::Vector< Tag > &&value)
Definition: ExportImageTask.h:366
Aws::EC2::Model::ExportImageTask::WithTags
ExportImageTask & WithTags(const Aws::Vector< Tag > &value)
Definition: ExportImageTask.h:361
ExportTaskS3Location.h
Aws::EC2::Model::ExportImageTask::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ExportImageTask.h:341
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ExportImageTask::WithStatus
ExportImageTask & WithStatus(const char *value)
Definition: ExportImageTask.h:294
Aws::EC2::Model::ExportImageTask::WithExportImageTaskId
ExportImageTask & WithExportImageTaskId(const char *value)
Definition: ExportImageTask.h:124
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ExportImageTask::SetImageId
void SetImageId(const char *value)
Definition: ExportImageTask.h:150
Aws::EC2::Model::ExportImageTask::SetStatus
void SetStatus(Aws::String &&value)
Definition: ExportImageTask.h:266
AWSStreamFwd.h
Aws::EC2::Model::ExportImageTask::ExportImageTask
ExportImageTask()
AWSVector.h
Tag.h
Aws::EC2::Model::ExportImageTask::WithStatusMessage
ExportImageTask & WithStatusMessage(Aws::String &&value)
Definition: ExportImageTask.h:330
Aws::EC2::Model::ExportImageTask::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: ExportImageTask.h:135
Aws::EC2::Model::ExportImageTask::WithExportImageTaskId
ExportImageTask & WithExportImageTaskId(const Aws::String &value)
Definition: ExportImageTask.h:114
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ExportImageTask::GetProgress
const Aws::String & GetProgress() const
Definition: ExportImageTask.h:171
Aws::EC2::Model::ExportImageTask::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ExportImageTask.h:351
Aws::EC2::Model::ExportImageTask::WithImageId
ExportImageTask & WithImageId(Aws::String &&value)
Definition: ExportImageTask.h:160
Aws::EC2::Model::ExportImageTask::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ExportImageTask.h:53
Aws::EC2::Model::ExportImageTask::SetImageId
void SetImageId(const Aws::String &value)
Definition: ExportImageTask.h:140
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ExportImageTask::WithStatusMessage
ExportImageTask & WithStatusMessage(const Aws::String &value)
Definition: ExportImageTask.h:325
Aws::EC2::Model::ExportImageTask::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ExportImageTask.h:252
Aws::EC2::Model::ExportImageTask::SetProgress
void SetProgress(Aws::String &&value)
Definition: ExportImageTask.h:186
Aws::EC2::Model::ExportImageTask::SetExportImageTaskId
void SetExportImageTaskId(Aws::String &&value)
Definition: ExportImageTask.h:104
Aws::EC2::Model::ExportImageTask::SetDescription
void SetDescription(Aws::String &&value)
Definition: ExportImageTask.h:63
Aws::EC2::Model::ExportImageTask::WithStatus
ExportImageTask & WithStatus(const Aws::String &value)
Definition: ExportImageTask.h:280
Aws::EC2::Model::ExportImageTask::S3ExportLocationHasBeenSet
bool S3ExportLocationHasBeenSet() const
Definition: ExportImageTask.h:217
Aws::EC2::Model::ExportImageTask::WithExportImageTaskId
ExportImageTask & WithExportImageTaskId(Aws::String &&value)
Definition: ExportImageTask.h:119
AWSString.h
Aws::EC2::Model::ExportImageTask::SetDescription
void SetDescription(const char *value)
Definition: ExportImageTask.h:68
Aws::EC2::Model::ExportImageTask::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: ExportImageTask.h:320
Aws::EC2::Model::ExportImageTask::WithImageId
ExportImageTask & WithImageId(const char *value)
Definition: ExportImageTask.h:165
Aws::EC2::Model::ExportImageTask::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ExportImageTask::GetDescription
const Aws::String & GetDescription() const
Definition: ExportImageTask.h:48
Aws::EC2::Model::ExportImageTask::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ExportImageTask.h:356
Aws::EC2::Model::ExportImageTask::SetStatus
void SetStatus(const char *value)
Definition: ExportImageTask.h:273
Aws::EC2::Model::ExportImageTask::GetExportImageTaskId
const Aws::String & GetExportImageTaskId() const
Definition: ExportImageTask.h:89
Aws::EC2::Model::ExportImageTask::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ExportImageTask.h:346
Aws::EC2::Model::ExportImageTask::ExportImageTask
ExportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ExportImageTask::WithStatusMessage
ExportImageTask & WithStatusMessage(const char *value)
Definition: ExportImageTask.h:335
Aws::EC2::Model::ExportImageTask::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: ExportImageTask.h:300
Aws::EC2::Model::ExportImageTask::WithS3ExportLocation
ExportImageTask & WithS3ExportLocation(ExportTaskS3Location &&value)
Definition: ExportImageTask.h:237
Aws::EC2::Model::ExportImageTask::WithS3ExportLocation
ExportImageTask & WithS3ExportLocation(const ExportTaskS3Location &value)
Definition: ExportImageTask.h:232
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ExportImageTask::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: ExportImageTask.h:315
Aws::EC2::Model::ExportImageTask::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: ExportImageTask.h:310
Aws::EC2::Model::ExportImageTask::SetProgress
void SetProgress(const char *value)
Definition: ExportImageTask.h:191
Aws::EC2::Model::ExportImageTask::WithImageId
ExportImageTask & WithImageId(const Aws::String &value)
Definition: ExportImageTask.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ExportImageTask::SetS3ExportLocation
void SetS3ExportLocation(ExportTaskS3Location &&value)
Definition: ExportImageTask.h:227
Aws::EC2::Model::ExportImageTask::ExportImageTaskIdHasBeenSet
bool ExportImageTaskIdHasBeenSet() const
Definition: ExportImageTask.h:94
Aws::EC2::Model::ExportImageTask::GetStatus
const Aws::String & GetStatus() const
Definition: ExportImageTask.h:245
Aws::EC2::Model::ExportImageTask::SetDescription
void SetDescription(const Aws::String &value)
Definition: ExportImageTask.h:58
Aws::EC2::Model::ExportImageTask::GetS3ExportLocation
const ExportTaskS3Location & GetS3ExportLocation() const
Definition: ExportImageTask.h:212
Aws::EC2::Model::ExportImageTask::AddTags
ExportImageTask & AddTags(const Tag &value)
Definition: ExportImageTask.h:371
Aws::EC2::Model::ExportImageTask::SetExportImageTaskId
void SetExportImageTaskId(const Aws::String &value)
Definition: ExportImageTask.h:99
EC2_EXPORTS.h
Aws::EC2::Model::ExportImageTask::WithDescription
ExportImageTask & WithDescription(const Aws::String &value)
Definition: ExportImageTask.h:73
Aws::EC2::Model::ExportImageTask::SetProgress
void SetProgress(const Aws::String &value)
Definition: ExportImageTask.h:181
Aws::EC2::Model::ExportImageTask::SetStatus
void SetStatus(const Aws::String &value)
Definition: ExportImageTask.h:259
Aws::EC2::Model::ExportImageTask::WithStatus
ExportImageTask & WithStatus(Aws::String &&value)
Definition: ExportImageTask.h:287
Aws::EC2::Model::ExportImageTask::SetImageId
void SetImageId(Aws::String &&value)
Definition: ExportImageTask.h:145
Aws::EC2::Model::ExportImageTask::operator=
ExportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ExportImageTask::ProgressHasBeenSet
bool ProgressHasBeenSet() const
Definition: ExportImageTask.h:176