AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportImageTask.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.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/BootModeValues.h>
12#include <aws/ec2/model/ImportImageLicenseConfigurationResponse.h>
13#include <aws/ec2/model/SnapshotDetail.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API ImportImageTask() = default;
35 AWS_EC2_API ImportImageTask(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const Aws::String& GetArchitecture() const { return m_architecture; }
47 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
48 template <typename ArchitectureT = Aws::String>
49 void SetArchitecture(ArchitectureT&& value) {
50 m_architectureHasBeenSet = true;
51 m_architecture = std::forward<ArchitectureT>(value);
52 }
53 template <typename ArchitectureT = Aws::String>
54 ImportImageTask& WithArchitecture(ArchitectureT&& value) {
55 SetArchitecture(std::forward<ArchitectureT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 ImportImageTask& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
82 inline bool GetEncrypted() const { return m_encrypted; }
83 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
84 inline void SetEncrypted(bool value) {
85 m_encryptedHasBeenSet = true;
86 m_encrypted = value;
87 }
88 inline ImportImageTask& WithEncrypted(bool value) {
89 SetEncrypted(value);
90 return *this;
91 }
93
95
99 inline const Aws::String& GetHypervisor() const { return m_hypervisor; }
100 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
101 template <typename HypervisorT = Aws::String>
102 void SetHypervisor(HypervisorT&& value) {
103 m_hypervisorHasBeenSet = true;
104 m_hypervisor = std::forward<HypervisorT>(value);
105 }
106 template <typename HypervisorT = Aws::String>
107 ImportImageTask& WithHypervisor(HypervisorT&& value) {
108 SetHypervisor(std::forward<HypervisorT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetImageId() const { return m_imageId; }
118 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
119 template <typename ImageIdT = Aws::String>
120 void SetImageId(ImageIdT&& value) {
121 m_imageIdHasBeenSet = true;
122 m_imageId = std::forward<ImageIdT>(value);
123 }
124 template <typename ImageIdT = Aws::String>
125 ImportImageTask& WithImageId(ImageIdT&& value) {
126 SetImageId(std::forward<ImageIdT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetImportTaskId() const { return m_importTaskId; }
136 inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; }
137 template <typename ImportTaskIdT = Aws::String>
138 void SetImportTaskId(ImportTaskIdT&& value) {
139 m_importTaskIdHasBeenSet = true;
140 m_importTaskId = std::forward<ImportTaskIdT>(value);
141 }
142 template <typename ImportTaskIdT = Aws::String>
143 ImportImageTask& WithImportTaskId(ImportTaskIdT&& value) {
144 SetImportTaskId(std::forward<ImportTaskIdT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
155 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
156 template <typename KmsKeyIdT = Aws::String>
157 void SetKmsKeyId(KmsKeyIdT&& value) {
158 m_kmsKeyIdHasBeenSet = true;
159 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
160 }
161 template <typename KmsKeyIdT = Aws::String>
162 ImportImageTask& WithKmsKeyId(KmsKeyIdT&& value) {
163 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetLicenseType() const { return m_licenseType; }
173 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
174 template <typename LicenseTypeT = Aws::String>
175 void SetLicenseType(LicenseTypeT&& value) {
176 m_licenseTypeHasBeenSet = true;
177 m_licenseType = std::forward<LicenseTypeT>(value);
178 }
179 template <typename LicenseTypeT = Aws::String>
180 ImportImageTask& WithLicenseType(LicenseTypeT&& value) {
181 SetLicenseType(std::forward<LicenseTypeT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetPlatform() const { return m_platform; }
191 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
192 template <typename PlatformT = Aws::String>
193 void SetPlatform(PlatformT&& value) {
194 m_platformHasBeenSet = true;
195 m_platform = std::forward<PlatformT>(value);
196 }
197 template <typename PlatformT = Aws::String>
198 ImportImageTask& WithPlatform(PlatformT&& value) {
199 SetPlatform(std::forward<PlatformT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetProgress() const { return m_progress; }
209 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
210 template <typename ProgressT = Aws::String>
211 void SetProgress(ProgressT&& value) {
212 m_progressHasBeenSet = true;
213 m_progress = std::forward<ProgressT>(value);
214 }
215 template <typename ProgressT = Aws::String>
216 ImportImageTask& WithProgress(ProgressT&& value) {
217 SetProgress(std::forward<ProgressT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Vector<SnapshotDetail>& GetSnapshotDetails() const { return m_snapshotDetails; }
227 inline bool SnapshotDetailsHasBeenSet() const { return m_snapshotDetailsHasBeenSet; }
228 template <typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
229 void SetSnapshotDetails(SnapshotDetailsT&& value) {
230 m_snapshotDetailsHasBeenSet = true;
231 m_snapshotDetails = std::forward<SnapshotDetailsT>(value);
232 }
233 template <typename SnapshotDetailsT = Aws::Vector<SnapshotDetail>>
234 ImportImageTask& WithSnapshotDetails(SnapshotDetailsT&& value) {
235 SetSnapshotDetails(std::forward<SnapshotDetailsT>(value));
236 return *this;
237 }
238 template <typename SnapshotDetailsT = SnapshotDetail>
239 ImportImageTask& AddSnapshotDetails(SnapshotDetailsT&& value) {
240 m_snapshotDetailsHasBeenSet = true;
241 m_snapshotDetails.emplace_back(std::forward<SnapshotDetailsT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::String& GetStatus() const { return m_status; }
251 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
252 template <typename StatusT = Aws::String>
253 void SetStatus(StatusT&& value) {
254 m_statusHasBeenSet = true;
255 m_status = std::forward<StatusT>(value);
256 }
257 template <typename StatusT = Aws::String>
258 ImportImageTask& WithStatus(StatusT&& value) {
259 SetStatus(std::forward<StatusT>(value));
260 return *this;
261 }
263
265
268 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
269 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
270 template <typename StatusMessageT = Aws::String>
271 void SetStatusMessage(StatusMessageT&& value) {
272 m_statusMessageHasBeenSet = true;
273 m_statusMessage = std::forward<StatusMessageT>(value);
274 }
275 template <typename StatusMessageT = Aws::String>
276 ImportImageTask& WithStatusMessage(StatusMessageT&& value) {
277 SetStatusMessage(std::forward<StatusMessageT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
287 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
294 ImportImageTask& WithTags(TagsT&& value) {
295 SetTags(std::forward<TagsT>(value));
296 return *this;
297 }
298 template <typename TagsT = Tag>
299 ImportImageTask& AddTags(TagsT&& value) {
300 m_tagsHasBeenSet = true;
301 m_tags.emplace_back(std::forward<TagsT>(value));
302 return *this;
303 }
305
307
311 inline const Aws::Vector<ImportImageLicenseConfigurationResponse>& GetLicenseSpecifications() const { return m_licenseSpecifications; }
312 inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; }
313 template <typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
314 void SetLicenseSpecifications(LicenseSpecificationsT&& value) {
315 m_licenseSpecificationsHasBeenSet = true;
316 m_licenseSpecifications = std::forward<LicenseSpecificationsT>(value);
317 }
318 template <typename LicenseSpecificationsT = Aws::Vector<ImportImageLicenseConfigurationResponse>>
319 ImportImageTask& WithLicenseSpecifications(LicenseSpecificationsT&& value) {
320 SetLicenseSpecifications(std::forward<LicenseSpecificationsT>(value));
321 return *this;
322 }
323 template <typename LicenseSpecificationsT = ImportImageLicenseConfigurationResponse>
324 ImportImageTask& AddLicenseSpecifications(LicenseSpecificationsT&& value) {
325 m_licenseSpecificationsHasBeenSet = true;
326 m_licenseSpecifications.emplace_back(std::forward<LicenseSpecificationsT>(value));
327 return *this;
328 }
330
332
335 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
336 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
337 template <typename UsageOperationT = Aws::String>
338 void SetUsageOperation(UsageOperationT&& value) {
339 m_usageOperationHasBeenSet = true;
340 m_usageOperation = std::forward<UsageOperationT>(value);
341 }
342 template <typename UsageOperationT = Aws::String>
343 ImportImageTask& WithUsageOperation(UsageOperationT&& value) {
344 SetUsageOperation(std::forward<UsageOperationT>(value));
345 return *this;
346 }
348
350
353 inline BootModeValues GetBootMode() const { return m_bootMode; }
354 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
355 inline void SetBootMode(BootModeValues value) {
356 m_bootModeHasBeenSet = true;
357 m_bootMode = value;
358 }
360 SetBootMode(value);
361 return *this;
362 }
364 private:
365 Aws::String m_architecture;
366
367 Aws::String m_description;
368
369 bool m_encrypted{false};
370
371 Aws::String m_hypervisor;
372
373 Aws::String m_imageId;
374
375 Aws::String m_importTaskId;
376
377 Aws::String m_kmsKeyId;
378
379 Aws::String m_licenseType;
380
381 Aws::String m_platform;
382
383 Aws::String m_progress;
384
385 Aws::Vector<SnapshotDetail> m_snapshotDetails;
386
387 Aws::String m_status;
388
389 Aws::String m_statusMessage;
390
391 Aws::Vector<Tag> m_tags;
392
394
395 Aws::String m_usageOperation;
396
398 bool m_architectureHasBeenSet = false;
399 bool m_descriptionHasBeenSet = false;
400 bool m_encryptedHasBeenSet = false;
401 bool m_hypervisorHasBeenSet = false;
402 bool m_imageIdHasBeenSet = false;
403 bool m_importTaskIdHasBeenSet = false;
404 bool m_kmsKeyIdHasBeenSet = false;
405 bool m_licenseTypeHasBeenSet = false;
406 bool m_platformHasBeenSet = false;
407 bool m_progressHasBeenSet = false;
408 bool m_snapshotDetailsHasBeenSet = false;
409 bool m_statusHasBeenSet = false;
410 bool m_statusMessageHasBeenSet = false;
411 bool m_tagsHasBeenSet = false;
412 bool m_licenseSpecificationsHasBeenSet = false;
413 bool m_usageOperationHasBeenSet = false;
414 bool m_bootModeHasBeenSet = false;
415};
416
417} // namespace Model
418} // namespace EC2
419} // namespace Aws
void SetLicenseType(LicenseTypeT &&value)
void SetProgress(ProgressT &&value)
const Aws::Vector< Tag > & GetTags() const
ImportImageTask & WithImportTaskId(ImportTaskIdT &&value)
ImportImageTask & WithBootMode(BootModeValues value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportImageTask & WithKmsKeyId(KmsKeyIdT &&value)
ImportImageTask & WithDescription(DescriptionT &&value)
const Aws::Vector< SnapshotDetail > & GetSnapshotDetails() const
ImportImageTask & WithStatus(StatusT &&value)
const Aws::String & GetHypervisor() const
ImportImageTask & WithLicenseSpecifications(LicenseSpecificationsT &&value)
ImportImageTask & WithProgress(ProgressT &&value)
const Aws::String & GetImageId() const
void SetImageId(ImageIdT &&value)
AWS_EC2_API ImportImageTask()=default
ImportImageTask & WithArchitecture(ArchitectureT &&value)
ImportImageTask & AddLicenseSpecifications(LicenseSpecificationsT &&value)
BootModeValues GetBootMode() const
const Aws::String & GetProgress() const
ImportImageTask & AddTags(TagsT &&value)
AWS_EC2_API ImportImageTask(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHypervisor(HypervisorT &&value)
void SetImportTaskId(ImportTaskIdT &&value)
const Aws::String & GetStatusMessage() const
void SetPlatform(PlatformT &&value)
ImportImageTask & AddSnapshotDetails(SnapshotDetailsT &&value)
const Aws::String & GetStatus() const
ImportImageTask & WithSnapshotDetails(SnapshotDetailsT &&value)
const Aws::String & GetLicenseType() const
void SetUsageOperation(UsageOperationT &&value)
const Aws::String & GetImportTaskId() const
void SetBootMode(BootModeValues value)
void SetLicenseSpecifications(LicenseSpecificationsT &&value)
AWS_EC2_API ImportImageTask & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPlatform() const
ImportImageTask & WithEncrypted(bool value)
ImportImageTask & WithImageId(ImageIdT &&value)
void SetSnapshotDetails(SnapshotDetailsT &&value)
ImportImageTask & WithPlatform(PlatformT &&value)
void SetArchitecture(ArchitectureT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetDescription() const
ImportImageTask & WithUsageOperation(UsageOperationT &&value)
const Aws::String & GetArchitecture() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportImageTask & WithTags(TagsT &&value)
ImportImageTask & WithHypervisor(HypervisorT &&value)
void SetStatusMessage(StatusMessageT &&value)
const Aws::String & GetUsageOperation() const
ImportImageTask & WithLicenseType(LicenseTypeT &&value)
const Aws::String & GetKmsKeyId() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< ImportImageLicenseConfigurationResponse > & GetLicenseSpecifications() const
ImportImageTask & WithStatusMessage(StatusMessageT &&value)
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