AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExportImageResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DiskImageFormat.h>
11#include <aws/ec2/model/ExportTaskS3Location.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13#include <aws/ec2/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2 {
27namespace Model {
29 public:
30 AWS_EC2_API ExportImageResponse() = default;
33
35
38 inline const Aws::String& GetDescription() const { return m_description; }
39 template <typename DescriptionT = Aws::String>
40 void SetDescription(DescriptionT&& value) {
41 m_descriptionHasBeenSet = true;
42 m_description = std::forward<DescriptionT>(value);
43 }
44 template <typename DescriptionT = Aws::String>
45 ExportImageResponse& WithDescription(DescriptionT&& value) {
46 SetDescription(std::forward<DescriptionT>(value));
47 return *this;
48 }
50
52
55 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
57 m_diskImageFormatHasBeenSet = true;
58 m_diskImageFormat = value;
59 }
61 SetDiskImageFormat(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetExportImageTaskId() const { return m_exportImageTaskId; }
71 template <typename ExportImageTaskIdT = Aws::String>
72 void SetExportImageTaskId(ExportImageTaskIdT&& value) {
73 m_exportImageTaskIdHasBeenSet = true;
74 m_exportImageTaskId = std::forward<ExportImageTaskIdT>(value);
75 }
76 template <typename ExportImageTaskIdT = Aws::String>
77 ExportImageResponse& WithExportImageTaskId(ExportImageTaskIdT&& value) {
78 SetExportImageTaskId(std::forward<ExportImageTaskIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetImageId() const { return m_imageId; }
88 template <typename ImageIdT = Aws::String>
89 void SetImageId(ImageIdT&& value) {
90 m_imageIdHasBeenSet = true;
91 m_imageId = std::forward<ImageIdT>(value);
92 }
93 template <typename ImageIdT = Aws::String>
94 ExportImageResponse& WithImageId(ImageIdT&& value) {
95 SetImageId(std::forward<ImageIdT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetRoleName() const { return m_roleName; }
106 template <typename RoleNameT = Aws::String>
107 void SetRoleName(RoleNameT&& value) {
108 m_roleNameHasBeenSet = true;
109 m_roleName = std::forward<RoleNameT>(value);
110 }
111 template <typename RoleNameT = Aws::String>
112 ExportImageResponse& WithRoleName(RoleNameT&& value) {
113 SetRoleName(std::forward<RoleNameT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetProgress() const { return m_progress; }
123 template <typename ProgressT = Aws::String>
124 void SetProgress(ProgressT&& value) {
125 m_progressHasBeenSet = true;
126 m_progress = std::forward<ProgressT>(value);
127 }
128 template <typename ProgressT = Aws::String>
129 ExportImageResponse& WithProgress(ProgressT&& value) {
130 SetProgress(std::forward<ProgressT>(value));
131 return *this;
132 }
134
136
139 inline const ExportTaskS3Location& GetS3ExportLocation() const { return m_s3ExportLocation; }
140 template <typename S3ExportLocationT = ExportTaskS3Location>
141 void SetS3ExportLocation(S3ExportLocationT&& value) {
142 m_s3ExportLocationHasBeenSet = true;
143 m_s3ExportLocation = std::forward<S3ExportLocationT>(value);
144 }
145 template <typename S3ExportLocationT = ExportTaskS3Location>
146 ExportImageResponse& WithS3ExportLocation(S3ExportLocationT&& value) {
147 SetS3ExportLocation(std::forward<S3ExportLocationT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::String& GetStatus() const { return m_status; }
159 template <typename StatusT = Aws::String>
160 void SetStatus(StatusT&& value) {
161 m_statusHasBeenSet = true;
162 m_status = std::forward<StatusT>(value);
163 }
164 template <typename StatusT = Aws::String>
165 ExportImageResponse& WithStatus(StatusT&& value) {
166 SetStatus(std::forward<StatusT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
176 template <typename StatusMessageT = Aws::String>
177 void SetStatusMessage(StatusMessageT&& value) {
178 m_statusMessageHasBeenSet = true;
179 m_statusMessage = std::forward<StatusMessageT>(value);
180 }
181 template <typename StatusMessageT = Aws::String>
182 ExportImageResponse& WithStatusMessage(StatusMessageT&& value) {
183 SetStatusMessage(std::forward<StatusMessageT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
193 template <typename TagsT = Aws::Vector<Tag>>
194 void SetTags(TagsT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags = std::forward<TagsT>(value);
197 }
198 template <typename TagsT = Aws::Vector<Tag>>
200 SetTags(std::forward<TagsT>(value));
201 return *this;
202 }
203 template <typename TagsT = Tag>
204 ExportImageResponse& AddTags(TagsT&& value) {
205 m_tagsHasBeenSet = true;
206 m_tags.emplace_back(std::forward<TagsT>(value));
207 return *this;
208 }
210
212
213 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
214 template <typename ResponseMetadataT = ResponseMetadata>
215 void SetResponseMetadata(ResponseMetadataT&& value) {
216 m_responseMetadataHasBeenSet = true;
217 m_responseMetadata = std::forward<ResponseMetadataT>(value);
218 }
219 template <typename ResponseMetadataT = ResponseMetadata>
220 ExportImageResponse& WithResponseMetadata(ResponseMetadataT&& value) {
221 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_description;
227
228 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
229
230 Aws::String m_exportImageTaskId;
231
232 Aws::String m_imageId;
233
234 Aws::String m_roleName;
235
236 Aws::String m_progress;
237
238 ExportTaskS3Location m_s3ExportLocation;
239
240 Aws::String m_status;
241
242 Aws::String m_statusMessage;
243
244 Aws::Vector<Tag> m_tags;
245
246 ResponseMetadata m_responseMetadata;
247 bool m_descriptionHasBeenSet = false;
248 bool m_diskImageFormatHasBeenSet = false;
249 bool m_exportImageTaskIdHasBeenSet = false;
250 bool m_imageIdHasBeenSet = false;
251 bool m_roleNameHasBeenSet = false;
252 bool m_progressHasBeenSet = false;
253 bool m_s3ExportLocationHasBeenSet = false;
254 bool m_statusHasBeenSet = false;
255 bool m_statusMessageHasBeenSet = false;
256 bool m_tagsHasBeenSet = false;
257 bool m_responseMetadataHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace EC2
262} // 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)
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