AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExportImageTask.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ExportTaskS3Location.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API ExportImageTask();
38 AWS_EC2_API ExportImageTask(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDescription() const{ return m_description; }
50 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
52 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
53 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
54 inline ExportImageTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
55 inline ExportImageTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
56 inline ExportImageTask& WithDescription(const char* value) { SetDescription(value); return *this;}
58
60
63 inline const Aws::String& GetExportImageTaskId() const{ return m_exportImageTaskId; }
64 inline bool ExportImageTaskIdHasBeenSet() const { return m_exportImageTaskIdHasBeenSet; }
65 inline void SetExportImageTaskId(const Aws::String& value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId = value; }
66 inline void SetExportImageTaskId(Aws::String&& value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId = std::move(value); }
67 inline void SetExportImageTaskId(const char* value) { m_exportImageTaskIdHasBeenSet = true; m_exportImageTaskId.assign(value); }
68 inline ExportImageTask& WithExportImageTaskId(const Aws::String& value) { SetExportImageTaskId(value); return *this;}
69 inline ExportImageTask& WithExportImageTaskId(Aws::String&& value) { SetExportImageTaskId(std::move(value)); return *this;}
70 inline ExportImageTask& WithExportImageTaskId(const char* value) { SetExportImageTaskId(value); return *this;}
72
74
77 inline const Aws::String& GetImageId() const{ return m_imageId; }
78 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
79 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
80 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
81 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
82 inline ExportImageTask& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
83 inline ExportImageTask& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
84 inline ExportImageTask& WithImageId(const char* value) { SetImageId(value); return *this;}
86
88
91 inline const Aws::String& GetProgress() const{ return m_progress; }
92 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
93 inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; }
94 inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); }
95 inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); }
96 inline ExportImageTask& WithProgress(const Aws::String& value) { SetProgress(value); return *this;}
97 inline ExportImageTask& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;}
98 inline ExportImageTask& WithProgress(const char* value) { SetProgress(value); return *this;}
100
102
105 inline const ExportTaskS3Location& GetS3ExportLocation() const{ return m_s3ExportLocation; }
106 inline bool S3ExportLocationHasBeenSet() const { return m_s3ExportLocationHasBeenSet; }
107 inline void SetS3ExportLocation(const ExportTaskS3Location& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = value; }
108 inline void SetS3ExportLocation(ExportTaskS3Location&& value) { m_s3ExportLocationHasBeenSet = true; m_s3ExportLocation = std::move(value); }
110 inline ExportImageTask& WithS3ExportLocation(ExportTaskS3Location&& value) { SetS3ExportLocation(std::move(value)); return *this;}
112
114
119 inline const Aws::String& GetStatus() const{ return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
122 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
123 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
124 inline ExportImageTask& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
125 inline ExportImageTask& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
126 inline ExportImageTask& WithStatus(const char* value) { SetStatus(value); return *this;}
128
130
133 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
134 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
135 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
136 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
137 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
138 inline ExportImageTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
139 inline ExportImageTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
140 inline ExportImageTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
142
144
147 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
151 inline ExportImageTask& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
152 inline ExportImageTask& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
153 inline ExportImageTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
154 inline ExportImageTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
156 private:
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::String m_exportImageTaskId;
162 bool m_exportImageTaskIdHasBeenSet = false;
163
164 Aws::String m_imageId;
165 bool m_imageIdHasBeenSet = false;
166
167 Aws::String m_progress;
168 bool m_progressHasBeenSet = false;
169
170 ExportTaskS3Location m_s3ExportLocation;
171 bool m_s3ExportLocationHasBeenSet = false;
172
173 Aws::String m_status;
174 bool m_statusHasBeenSet = false;
175
176 Aws::String m_statusMessage;
177 bool m_statusMessageHasBeenSet = false;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace EC2
185} // namespace Aws
void SetStatus(const char *value)
void SetImageId(Aws::String &&value)
ExportImageTask & WithProgress(const char *value)
ExportImageTask & WithStatusMessage(const char *value)
ExportImageTask & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
ExportImageTask & WithTags(Aws::Vector< Tag > &&value)
void SetDescription(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ExportImageTask & WithStatus(const Aws::String &value)
void SetProgress(Aws::String &&value)
ExportImageTask & WithStatusMessage(const Aws::String &value)
void SetStatusMessage(Aws::String &&value)
void SetS3ExportLocation(const ExportTaskS3Location &value)
ExportImageTask & WithImageId(Aws::String &&value)
ExportImageTask & WithProgress(const Aws::String &value)
ExportImageTask & WithS3ExportLocation(const ExportTaskS3Location &value)
void SetImageId(const Aws::String &value)
void SetExportImageTaskId(const char *value)
ExportImageTask & WithExportImageTaskId(Aws::String &&value)
void SetProgress(const char *value)
void SetStatus(const Aws::String &value)
void SetExportImageTaskId(Aws::String &&value)
ExportImageTask & WithProgress(Aws::String &&value)
void SetExportImageTaskId(const Aws::String &value)
ExportImageTask & WithDescription(Aws::String &&value)
ExportImageTask & WithStatusMessage(Aws::String &&value)
const Aws::String & GetDescription() const
ExportImageTask & WithDescription(const Aws::String &value)
void SetStatus(Aws::String &&value)
ExportImageTask & WithExportImageTaskId(const char *value)
ExportImageTask & WithImageId(const Aws::String &value)
ExportImageTask & AddTags(Tag &&value)
const Aws::String & GetProgress() const
ExportImageTask & WithImageId(const char *value)
const ExportTaskS3Location & GetS3ExportLocation() const
const Aws::String & GetImageId() const
AWS_EC2_API ExportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportImageTask & WithDescription(const char *value)
void SetImageId(const char *value)
AWS_EC2_API ExportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStatusMessage() const
void SetStatusMessage(const char *value)
void SetS3ExportLocation(ExportTaskS3Location &&value)
void SetDescription(Aws::String &&value)
ExportImageTask & WithTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetProgress(const Aws::String &value)
ExportImageTask & WithStatus(Aws::String &&value)
void SetDescription(const char *value)
const Aws::String & GetExportImageTaskId() const
ExportImageTask & WithS3ExportLocation(ExportTaskS3Location &&value)
ExportImageTask & WithExportImageTaskId(const Aws::String &value)
ExportImageTask & WithStatus(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetStatusMessage(const Aws::String &value)
const Aws::String & GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream