AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
ImportImageResponse.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/ImportImageLicenseConfigurationResponse.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13#include <aws/ec2/model/SnapshotDetail.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 ImportImageResponse() = default;
34
36
39 inline const Aws::String& GetArchitecture() const { return m_architecture; }
40 template <typename ArchitectureT = Aws::String>
41 void SetArchitecture(ArchitectureT&& value) {
42 m_architectureHasBeenSet = true;
43 m_architecture = std::forward<ArchitectureT>(value);
44 }
45 template <typename ArchitectureT = Aws::String>
46 ImportImageResponse& WithArchitecture(ArchitectureT&& value) {
47 SetArchitecture(std::forward<ArchitectureT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 ImportImageResponse& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline bool GetEncrypted() const { return m_encrypted; }
74 inline void SetEncrypted(bool value) {
75 m_encryptedHasBeenSet = true;
76 m_encrypted = value;
77 }
78 inline ImportImageResponse& WithEncrypted(bool value) {
79 SetEncrypted(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetHypervisor() const { return m_hypervisor; }
89 template <typename HypervisorT = Aws::String>
90 void SetHypervisor(HypervisorT&& value) {
91 m_hypervisorHasBeenSet = true;
92 m_hypervisor = std::forward<HypervisorT>(value);
93 }
94 template <typename HypervisorT = Aws::String>
95 ImportImageResponse& WithHypervisor(HypervisorT&& value) {
96 SetHypervisor(std::forward<HypervisorT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetImageId() const { return m_imageId; }
106 template <typename ImageIdT = Aws::String>
107 void SetImageId(ImageIdT&& value) {
108 m_imageIdHasBeenSet = true;
109 m_imageId = std::forward<ImageIdT>(value);
110 }
111 template <typename ImageIdT = Aws::String>
112 ImportImageResponse& WithImageId(ImageIdT&& value) {
113 SetImageId(std::forward<ImageIdT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetImportTaskId() const { return m_importTaskId; }
123 template <typename ImportTaskIdT = Aws::String>
124 void SetImportTaskId(ImportTaskIdT&& value) {
125 m_importTaskIdHasBeenSet = true;
126 m_importTaskId = std::forward<ImportTaskIdT>(value);
127 }
128 template <typename ImportTaskIdT = Aws::String>
129 ImportImageResponse& WithImportTaskId(ImportTaskIdT&& value) {
130 SetImportTaskId(std::forward<ImportTaskIdT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
141 template <typename KmsKeyIdT = Aws::String>
142 void SetKmsKeyId(KmsKeyIdT&& value) {
143 m_kmsKeyIdHasBeenSet = true;
144 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
145 }
146 template <typename KmsKeyIdT = Aws::String>
147 ImportImageResponse& WithKmsKeyId(KmsKeyIdT&& value) {
148 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetLicenseType() const { return m_licenseType; }
158 template <typename LicenseTypeT = Aws::String>
159 void SetLicenseType(LicenseTypeT&& value) {
160 m_licenseTypeHasBeenSet = true;
161 m_licenseType = std::forward<LicenseTypeT>(value);
162 }
163 template <typename LicenseTypeT = Aws::String>
164 ImportImageResponse& WithLicenseType(LicenseTypeT&& value) {
165 SetLicenseType(std::forward<LicenseTypeT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetPlatform() const { return m_platform; }
175 template <typename PlatformT = Aws::String>
176 void SetPlatform(PlatformT&& value) {
177 m_platformHasBeenSet = true;
178 m_platform = std::forward<PlatformT>(value);
179 }
180 template <typename PlatformT = Aws::String>
181 ImportImageResponse& WithPlatform(PlatformT&& value) {
182 SetPlatform(std::forward<PlatformT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetProgress() const { return m_progress; }
192 template <typename ProgressT = Aws::String>
193 void SetProgress(ProgressT&& value) {
194 m_progressHasBeenSet = true;
195 m_progress = std::forward<ProgressT>(value);
196 }
197 template <typename ProgressT = Aws::String>
198 ImportImageResponse& WithProgress(ProgressT&& value) {
199 SetProgress(std::forward<ProgressT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const { return m_snapshotDetails; }
209 template <typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
210 void SetSnapshotDetails(SnapshotDetailsT&& value) {
211 m_snapshotDetailsHasBeenSet = true;
212 m_snapshotDetails = std::forward<SnapshotDetailsT>(value);
213 }
214 template <typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
215 ImportImageResponse& WithSnapshotDetails(SnapshotDetailsT&& value) {
216 SetSnapshotDetails(std::forward<SnapshotDetailsT>(value));
217 return *this;
218 }
219 template <typename SnapshotDetailsT = SnapshotDetail>
220 ImportImageResponse& AddSnapshotDetails(SnapshotDetailsT&& value) {
221 m_snapshotDetailsHasBeenSet = true;
222 m_snapshotDetails.emplace_back(std::forward<SnapshotDetailsT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetStatus() const { return m_status; }
232 template <typename StatusT = Aws::String>
233 void SetStatus(StatusT&& value) {
234 m_statusHasBeenSet = true;
235 m_status = std::forward<StatusT>(value);
236 }
237 template <typename StatusT = Aws::String>
238 ImportImageResponse& WithStatus(StatusT&& value) {
239 SetStatus(std::forward<StatusT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
249 template <typename StatusMessageT = Aws::String>
250 void SetStatusMessage(StatusMessageT&& value) {
251 m_statusMessageHasBeenSet = true;
252 m_statusMessage = std::forward<StatusMessageT>(value);
253 }
254 template <typename StatusMessageT = Aws::String>
255 ImportImageResponse& WithStatusMessage(StatusMessageT&& value) {
256 SetStatusMessage(std::forward<StatusMessageT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Vector<ImportImageLicenseConfigurationResponse>& GetLicenseSpecifications() const { return m_licenseSpecifications; }
266 template <typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
267 void SetLicenseSpecifications(LicenseSpecificationsT&& value) {
268 m_licenseSpecificationsHasBeenSet = true;
269 m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value);
270 }
271 template <typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
272 ImportImageResponse& WithLicenseSpecifications(LicenseSpecificationsT&& value) {
273 SetLicenseSpecifications(std::forward<LicenseSpecificationsT>(value));
274 return *this;
275 }
276 template <typename LicenseSpecificationsT = ImportImageLicenseConfigurationResponse>
277 ImportImageResponse& AddLicenseSpecifications(LicenseSpecificationsT&& value) {
278 m_licenseSpecificationsHasBeenSet = true;
279 m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value));
280 return *this;
281 }
283
285
288 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
289 template <typename TagsT = Aws::Vector<Tag>>
290 void SetTags(TagsT&& value) {
291 m_tagsHasBeenSet = true;
292 m_tags = std::forward<TagsT>(value);
293 }
294 template <typename TagsT = Aws::Vector<Tag>>
296 SetTags(std::forward<TagsT>(value));
297 return *this;
298 }
299 template <typename TagsT = Tag>
300 ImportImageResponse& AddTags(TagsT&& value) {
301 m_tagsHasBeenSet = true;
302 m_tags.emplace_back(std::forward<TagsT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
312 template <typename UsageOperationT = Aws::String>
313 void SetUsageOperation(UsageOperationT&& value) {
314 m_usageOperationHasBeenSet = true;
315 m_usageOperation = std::forward<UsageOperationT>(value);
316 }
317 template <typename UsageOperationT = Aws::String>
318 ImportImageResponse& WithUsageOperation(UsageOperationT&& value) {
319 SetUsageOperation(std::forward<UsageOperationT>(value));
320 return *this;
321 }
323
325
326 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
327 template <typename ResponseMetadataT = ResponseMetadata>
328 void SetResponseMetadata(ResponseMetadataT&& value) {
329 m_responseMetadataHasBeenSet = true;
330 m_responseMetadata = std::forward<ResponseMetadataT>(value);
331 }
332 template <typename ResponseMetadataT = ResponseMetadata>
333 ImportImageResponse& WithResponseMetadata(ResponseMetadataT&& value) {
334 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
335 return *this;
336 }
338 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
339
340 private:
341 Aws::String m_architecture;
342
343 Aws::String m_description;
344
345 bool m_encrypted{false};
346
347 Aws::String m_hypervisor;
348
349 Aws::String m_imageId;
350
351 Aws::String m_importTaskId;
352
353 Aws::String m_kmsKeyId;
354
355 Aws::String m_licenseType;
356
357 Aws::String m_platform;
358
359 Aws::String m_progress;
360
361 Aws::Vector<SnapshotDetail> m_snapshotDetails;
362
363 Aws::String m_status;
364
365 Aws::String m_statusMessage;
366
368
369 Aws::Vector<Tag> m_tags;
370
371 Aws::String m_usageOperation;
372
373 ResponseMetadata m_responseMetadata;
374 Aws::Http::HttpResponseCode m_HttpResponseCode;
375 bool m_architectureHasBeenSet = false;
376 bool m_descriptionHasBeenSet = false;
377 bool m_encryptedHasBeenSet = false;
378 bool m_hypervisorHasBeenSet = false;
379 bool m_imageIdHasBeenSet = false;
380 bool m_importTaskIdHasBeenSet = false;
381 bool m_kmsKeyIdHasBeenSet = false;
382 bool m_licenseTypeHasBeenSet = false;
383 bool m_platformHasBeenSet = false;
384 bool m_progressHasBeenSet = false;
385 bool m_snapshotDetailsHasBeenSet = false;
386 bool m_statusHasBeenSet = false;
387 bool m_statusMessageHasBeenSet = false;
388 bool m_licenseSpecificationsHasBeenSet = false;
389 bool m_tagsHasBeenSet = false;
390 bool m_usageOperationHasBeenSet = false;
391 bool m_responseMetadataHasBeenSet = false;
392};
393
394} // namespace Model
395} // namespace EC2
396} // namespace Aws
ImportImageResponse & WithLicenseType(LicenseTypeT &&value)
ImportImageResponse & WithHypervisor(HypervisorT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetStatus() const
AWS_EC2_API ImportImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ImportImageResponse & WithLicenseSpecifications(LicenseSpecificationsT &&value)
ImportImageResponse & WithPlatform(PlatformT &&value)
const Aws::String & GetStatusMessage() const
ImportImageResponse & WithImageId(ImageIdT &&value)
const Aws::String & GetImportTaskId() const
void SetLicenseSpecifications(LicenseSpecificationsT &&value)
const Aws::Vector< Tag > & GetTags() const
ImportImageResponse & WithStatusMessage(StatusMessageT &&value)
ImportImageResponse & AddSnapshotDetails(SnapshotDetailsT &&value)
void SetDescription(DescriptionT &&value)
ImportImageResponse & WithEncrypted(bool value)
void SetUsageOperation(UsageOperationT &&value)
ImportImageResponse & WithProgress(ProgressT &&value)
const Aws::String & GetKmsKeyId() const
void SetHypervisor(HypervisorT &&value)
const Aws::String & GetArchitecture() const
AWS_EC2_API ImportImageResponse()=default
void SetLicenseType(LicenseTypeT &&value)
void SetSnapshotDetails(SnapshotDetailsT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
ImportImageResponse & WithKmsKeyId(KmsKeyIdT &&value)
ImportImageResponse & WithUsageOperation(UsageOperationT &&value)
const Aws::String & GetHypervisor() const
ImportImageResponse & WithArchitecture(ArchitectureT &&value)
const Aws::String & GetImageId() const
AWS_EC2_API ImportImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetStatusMessage(StatusMessageT &&value)
ImportImageResponse & WithDescription(DescriptionT &&value)
ImportImageResponse & WithTags(TagsT &&value)
void SetArchitecture(ArchitectureT &&value)
const Aws::String & GetProgress() const
ImportImageResponse & AddLicenseSpecifications(LicenseSpecificationsT &&value)
ImportImageResponse & WithImportTaskId(ImportTaskIdT &&value)
const Aws::String & GetUsageOperation() const
const Aws::String & GetPlatform() const
const Aws::String & GetLicenseType() const
ImportImageResponse & WithStatus(StatusT &&value)
const Aws::Vector< ImportImageLicenseConfigurationResponse > & GetLicenseSpecifications() const
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
ImportImageResponse & WithResponseMetadata(ResponseMetadataT &&value)
void SetImportTaskId(ImportTaskIdT &&value)
const Aws::String & GetDescription() const
ImportImageResponse & AddTags(TagsT &&value)
ImportImageResponse & WithSnapshotDetails(SnapshotDetailsT &&value)
const ResponseMetadata & GetResponseMetadata() 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