AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportImageResponse.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/ImportImageLicenseConfigurationResponse.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12#include <aws/ec2/model/SnapshotDetail.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 ImportImageResponse() = default;
33
35
38 inline const Aws::String& GetArchitecture() const { return m_architecture; }
39 template <typename ArchitectureT = Aws::String>
40 void SetArchitecture(ArchitectureT&& value) {
41 m_architectureHasBeenSet = true;
42 m_architecture = std::forward<ArchitectureT>(value);
43 }
44 template <typename ArchitectureT = Aws::String>
45 ImportImageResponse& WithArchitecture(ArchitectureT&& value) {
46 SetArchitecture(std::forward<ArchitectureT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 ImportImageResponse& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline bool GetEncrypted() const { return m_encrypted; }
73 inline void SetEncrypted(bool value) {
74 m_encryptedHasBeenSet = true;
75 m_encrypted = value;
76 }
77 inline ImportImageResponse& WithEncrypted(bool value) {
78 SetEncrypted(value);
79 return *this;
80 }
82
84
87 inline const Aws::String& GetHypervisor() const { return m_hypervisor; }
88 template <typename HypervisorT = Aws::String>
89 void SetHypervisor(HypervisorT&& value) {
90 m_hypervisorHasBeenSet = true;
91 m_hypervisor = std::forward<HypervisorT>(value);
92 }
93 template <typename HypervisorT = Aws::String>
94 ImportImageResponse& WithHypervisor(HypervisorT&& value) {
95 SetHypervisor(std::forward<HypervisorT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetImageId() const { return m_imageId; }
105 template <typename ImageIdT = Aws::String>
106 void SetImageId(ImageIdT&& value) {
107 m_imageIdHasBeenSet = true;
108 m_imageId = std::forward<ImageIdT>(value);
109 }
110 template <typename ImageIdT = Aws::String>
111 ImportImageResponse& WithImageId(ImageIdT&& value) {
112 SetImageId(std::forward<ImageIdT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetImportTaskId() const { return m_importTaskId; }
122 template <typename ImportTaskIdT = Aws::String>
123 void SetImportTaskId(ImportTaskIdT&& value) {
124 m_importTaskIdHasBeenSet = true;
125 m_importTaskId = std::forward<ImportTaskIdT>(value);
126 }
127 template <typename ImportTaskIdT = Aws::String>
128 ImportImageResponse& WithImportTaskId(ImportTaskIdT&& value) {
129 SetImportTaskId(std::forward<ImportTaskIdT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
140 template <typename KmsKeyIdT = Aws::String>
141 void SetKmsKeyId(KmsKeyIdT&& value) {
142 m_kmsKeyIdHasBeenSet = true;
143 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
144 }
145 template <typename KmsKeyIdT = Aws::String>
146 ImportImageResponse& WithKmsKeyId(KmsKeyIdT&& value) {
147 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetLicenseType() const { return m_licenseType; }
157 template <typename LicenseTypeT = Aws::String>
158 void SetLicenseType(LicenseTypeT&& value) {
159 m_licenseTypeHasBeenSet = true;
160 m_licenseType = std::forward<LicenseTypeT>(value);
161 }
162 template <typename LicenseTypeT = Aws::String>
163 ImportImageResponse& WithLicenseType(LicenseTypeT&& value) {
164 SetLicenseType(std::forward<LicenseTypeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetPlatform() const { return m_platform; }
174 template <typename PlatformT = Aws::String>
175 void SetPlatform(PlatformT&& value) {
176 m_platformHasBeenSet = true;
177 m_platform = std::forward<PlatformT>(value);
178 }
179 template <typename PlatformT = Aws::String>
180 ImportImageResponse& WithPlatform(PlatformT&& value) {
181 SetPlatform(std::forward<PlatformT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetProgress() const { return m_progress; }
191 template <typename ProgressT = Aws::String>
192 void SetProgress(ProgressT&& value) {
193 m_progressHasBeenSet = true;
194 m_progress = std::forward<ProgressT>(value);
195 }
196 template <typename ProgressT = Aws::String>
197 ImportImageResponse& WithProgress(ProgressT&& value) {
198 SetProgress(std::forward<ProgressT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const { return m_snapshotDetails; }
208 template <typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
209 void SetSnapshotDetails(SnapshotDetailsT&& value) {
210 m_snapshotDetailsHasBeenSet = true;
211 m_snapshotDetails = std::forward<SnapshotDetailsT>(value);
212 }
213 template <typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
214 ImportImageResponse& WithSnapshotDetails(SnapshotDetailsT&& value) {
215 SetSnapshotDetails(std::forward<SnapshotDetailsT>(value));
216 return *this;
217 }
218 template <typename SnapshotDetailsT = SnapshotDetail>
219 ImportImageResponse& AddSnapshotDetails(SnapshotDetailsT&& value) {
220 m_snapshotDetailsHasBeenSet = true;
221 m_snapshotDetails.emplace_back(std::forward<SnapshotDetailsT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetStatus() const { return m_status; }
231 template <typename StatusT = Aws::String>
232 void SetStatus(StatusT&& value) {
233 m_statusHasBeenSet = true;
234 m_status = std::forward<StatusT>(value);
235 }
236 template <typename StatusT = Aws::String>
237 ImportImageResponse& WithStatus(StatusT&& value) {
238 SetStatus(std::forward<StatusT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
248 template <typename StatusMessageT = Aws::String>
249 void SetStatusMessage(StatusMessageT&& value) {
250 m_statusMessageHasBeenSet = true;
251 m_statusMessage = std::forward<StatusMessageT>(value);
252 }
253 template <typename StatusMessageT = Aws::String>
254 ImportImageResponse& WithStatusMessage(StatusMessageT&& value) {
255 SetStatusMessage(std::forward<StatusMessageT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::Vector<ImportImageLicenseConfigurationResponse>& GetLicenseSpecifications() const { return m_licenseSpecifications; }
265 template <typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
266 void SetLicenseSpecifications(LicenseSpecificationsT&& value) {
267 m_licenseSpecificationsHasBeenSet = true;
268 m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value);
269 }
270 template <typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
271 ImportImageResponse& WithLicenseSpecifications(LicenseSpecificationsT&& value) {
272 SetLicenseSpecifications(std::forward<LicenseSpecificationsT>(value));
273 return *this;
274 }
275 template <typename LicenseSpecificationsT = ImportImageLicenseConfigurationResponse>
276 ImportImageResponse& AddLicenseSpecifications(LicenseSpecificationsT&& value) {
277 m_licenseSpecificationsHasBeenSet = true;
278 m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
288 template <typename TagsT = Aws::Vector<Tag>>
289 void SetTags(TagsT&& value) {
290 m_tagsHasBeenSet = true;
291 m_tags = std::forward<TagsT>(value);
292 }
293 template <typename TagsT = Aws::Vector<Tag>>
295 SetTags(std::forward<TagsT>(value));
296 return *this;
297 }
298 template <typename TagsT = Tag>
299 ImportImageResponse& AddTags(TagsT&& value) {
300 m_tagsHasBeenSet = true;
301 m_tags.emplace_back(std::forward<TagsT>(value));
302 return *this;
303 }
305
307
310 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
311 template <typename UsageOperationT = Aws::String>
312 void SetUsageOperation(UsageOperationT&& value) {
313 m_usageOperationHasBeenSet = true;
314 m_usageOperation = std::forward<UsageOperationT>(value);
315 }
316 template <typename UsageOperationT = Aws::String>
317 ImportImageResponse& WithUsageOperation(UsageOperationT&& value) {
318 SetUsageOperation(std::forward<UsageOperationT>(value));
319 return *this;
320 }
322
324
325 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
326 template <typename ResponseMetadataT = ResponseMetadata>
327 void SetResponseMetadata(ResponseMetadataT&& value) {
328 m_responseMetadataHasBeenSet = true;
329 m_responseMetadata = std::forward<ResponseMetadataT>(value);
330 }
331 template <typename ResponseMetadataT = ResponseMetadata>
332 ImportImageResponse& WithResponseMetadata(ResponseMetadataT&& value) {
333 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
334 return *this;
335 }
337 private:
338 Aws::String m_architecture;
339
340 Aws::String m_description;
341
342 bool m_encrypted{false};
343
344 Aws::String m_hypervisor;
345
346 Aws::String m_imageId;
347
348 Aws::String m_importTaskId;
349
350 Aws::String m_kmsKeyId;
351
352 Aws::String m_licenseType;
353
354 Aws::String m_platform;
355
356 Aws::String m_progress;
357
358 Aws::Vector<SnapshotDetail> m_snapshotDetails;
359
360 Aws::String m_status;
361
362 Aws::String m_statusMessage;
363
365
366 Aws::Vector<Tag> m_tags;
367
368 Aws::String m_usageOperation;
369
370 ResponseMetadata m_responseMetadata;
371 bool m_architectureHasBeenSet = false;
372 bool m_descriptionHasBeenSet = false;
373 bool m_encryptedHasBeenSet = false;
374 bool m_hypervisorHasBeenSet = false;
375 bool m_imageIdHasBeenSet = false;
376 bool m_importTaskIdHasBeenSet = false;
377 bool m_kmsKeyIdHasBeenSet = false;
378 bool m_licenseTypeHasBeenSet = false;
379 bool m_platformHasBeenSet = false;
380 bool m_progressHasBeenSet = false;
381 bool m_snapshotDetailsHasBeenSet = false;
382 bool m_statusHasBeenSet = false;
383 bool m_statusMessageHasBeenSet = false;
384 bool m_licenseSpecificationsHasBeenSet = false;
385 bool m_tagsHasBeenSet = false;
386 bool m_usageOperationHasBeenSet = false;
387 bool m_responseMetadataHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace EC2
392} // namespace Aws
ImportImageResponse & WithLicenseType(LicenseTypeT &&value)
ImportImageResponse & WithHypervisor(HypervisorT &&value)
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