AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
ExportImageResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/DiskImageFormat.h>
12#include <aws/ec2/model/ExportTaskS3Location.h>
13#include <aws/ec2/model/ResponseMetadata.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2 {
28namespace Model {
30 public:
31 AWS_EC2_API ExportImageResponse() = default;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 template <typename DescriptionT = Aws::String>
41 void SetDescription(DescriptionT&& value) {
42 m_descriptionHasBeenSet = true;
43 m_description = std::forward<DescriptionT>(value);
44 }
45 template <typename DescriptionT = Aws::String>
46 ExportImageResponse& WithDescription(DescriptionT&& value) {
47 SetDescription(std::forward<DescriptionT>(value));
48 return *this;
49 }
51
53
56 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
58 m_diskImageFormatHasBeenSet = true;
59 m_diskImageFormat = value;
60 }
62 SetDiskImageFormat(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetExportImageTaskId() const { return m_exportImageTaskId; }
72 template <typename ExportImageTaskIdT = Aws::String>
73 void SetExportImageTaskId(ExportImageTaskIdT&& value) {
74 m_exportImageTaskIdHasBeenSet = true;
75 m_exportImageTaskId = std::forward<ExportImageTaskIdT>(value);
76 }
77 template <typename ExportImageTaskIdT = Aws::String>
78 ExportImageResponse& WithExportImageTaskId(ExportImageTaskIdT&& value) {
79 SetExportImageTaskId(std::forward<ExportImageTaskIdT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetImageId() const { return m_imageId; }
89 template <typename ImageIdT = Aws::String>
90 void SetImageId(ImageIdT&& value) {
91 m_imageIdHasBeenSet = true;
92 m_imageId = std::forward<ImageIdT>(value);
93 }
94 template <typename ImageIdT = Aws::String>
95 ExportImageResponse& WithImageId(ImageIdT&& value) {
96 SetImageId(std::forward<ImageIdT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetRoleName() const { return m_roleName; }
107 template <typename RoleNameT = Aws::String>
108 void SetRoleName(RoleNameT&& value) {
109 m_roleNameHasBeenSet = true;
110 m_roleName = std::forward<RoleNameT>(value);
111 }
112 template <typename RoleNameT = Aws::String>
113 ExportImageResponse& WithRoleName(RoleNameT&& value) {
114 SetRoleName(std::forward<RoleNameT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetProgress() const { return m_progress; }
124 template <typename ProgressT = Aws::String>
125 void SetProgress(ProgressT&& value) {
126 m_progressHasBeenSet = true;
127 m_progress = std::forward<ProgressT>(value);
128 }
129 template <typename ProgressT = Aws::String>
130 ExportImageResponse& WithProgress(ProgressT&& value) {
131 SetProgress(std::forward<ProgressT>(value));
132 return *this;
133 }
135
137
140 inline const ExportTaskS3Location& GetS3ExportLocation() const { return m_s3ExportLocation; }
141 template <typename S3ExportLocationT = ExportTaskS3Location>
142 void SetS3ExportLocation(S3ExportLocationT&& value) {
143 m_s3ExportLocationHasBeenSet = true;
144 m_s3ExportLocation = std::forward<S3ExportLocationT>(value);
145 }
146 template <typename S3ExportLocationT = ExportTaskS3Location>
147 ExportImageResponse& WithS3ExportLocation(S3ExportLocationT&& value) {
148 SetS3ExportLocation(std::forward<S3ExportLocationT>(value));
149 return *this;
150 }
152
154
159 inline const Aws::String& GetStatus() const { return m_status; }
160 template <typename StatusT = Aws::String>
161 void SetStatus(StatusT&& value) {
162 m_statusHasBeenSet = true;
163 m_status = std::forward<StatusT>(value);
164 }
165 template <typename StatusT = Aws::String>
166 ExportImageResponse& WithStatus(StatusT&& value) {
167 SetStatus(std::forward<StatusT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
177 template <typename StatusMessageT = Aws::String>
178 void SetStatusMessage(StatusMessageT&& value) {
179 m_statusMessageHasBeenSet = true;
180 m_statusMessage = std::forward<StatusMessageT>(value);
181 }
182 template <typename StatusMessageT = Aws::String>
183 ExportImageResponse& WithStatusMessage(StatusMessageT&& value) {
184 SetStatusMessage(std::forward<StatusMessageT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
194 template <typename TagsT = Aws::Vector<Tag>>
195 void SetTags(TagsT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags = std::forward<TagsT>(value);
198 }
199 template <typename TagsT = Aws::Vector<Tag>>
201 SetTags(std::forward<TagsT>(value));
202 return *this;
203 }
204 template <typename TagsT = Tag>
205 ExportImageResponse& AddTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags.emplace_back(std::forward<TagsT>(value));
208 return *this;
209 }
211
213
214 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
215 template <typename ResponseMetadataT = ResponseMetadata>
216 void SetResponseMetadata(ResponseMetadataT&& value) {
217 m_responseMetadataHasBeenSet = true;
218 m_responseMetadata = std::forward<ResponseMetadataT>(value);
219 }
220 template <typename ResponseMetadataT = ResponseMetadata>
221 ExportImageResponse& WithResponseMetadata(ResponseMetadataT&& value) {
222 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
223 return *this;
224 }
226 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
227
228 private:
229 Aws::String m_description;
230
231 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
232
233 Aws::String m_exportImageTaskId;
234
235 Aws::String m_imageId;
236
237 Aws::String m_roleName;
238
239 Aws::String m_progress;
240
241 ExportTaskS3Location m_s3ExportLocation;
242
243 Aws::String m_status;
244
245 Aws::String m_statusMessage;
246
247 Aws::Vector<Tag> m_tags;
248
249 ResponseMetadata m_responseMetadata;
250 Aws::Http::HttpResponseCode m_HttpResponseCode;
251 bool m_descriptionHasBeenSet = false;
252 bool m_diskImageFormatHasBeenSet = false;
253 bool m_exportImageTaskIdHasBeenSet = false;
254 bool m_imageIdHasBeenSet = false;
255 bool m_roleNameHasBeenSet = false;
256 bool m_progressHasBeenSet = false;
257 bool m_s3ExportLocationHasBeenSet = false;
258 bool m_statusHasBeenSet = false;
259 bool m_statusMessageHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261 bool m_responseMetadataHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace EC2
266} // namespace Aws
const ExportTaskS3Location & GetS3ExportLocation() const
ExportImageResponse & WithStatus(StatusT &&value)
ExportImageResponse & WithS3ExportLocation(S3ExportLocationT &&value)
AWS_EC2_API ExportImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
ExportImageResponse & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetExportImageTaskId() const
const Aws::String & GetDescription() const
const Aws::String & GetStatus() const
ExportImageResponse & WithExportImageTaskId(ExportImageTaskIdT &&value)
void SetExportImageTaskId(ExportImageTaskIdT &&value)
ExportImageResponse & WithDiskImageFormat(DiskImageFormat value)
AWS_EC2_API ExportImageResponse()=default
const Aws::String & GetStatusMessage() const
ExportImageResponse & WithDescription(DescriptionT &&value)
ExportImageResponse & WithRoleName(RoleNameT &&value)
void SetS3ExportLocation(S3ExportLocationT &&value)
void SetDiskImageFormat(DiskImageFormat value)
const Aws::String & GetProgress() const
ExportImageResponse & WithProgress(ProgressT &&value)
ExportImageResponse & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
ExportImageResponse & AddTags(TagsT &&value)
AWS_EC2_API ExportImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetStatusMessage(StatusMessageT &&value)
ExportImageResponse & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetRoleName() const
ExportImageResponse & WithImageId(ImageIdT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetImageId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument