AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
Image.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/HypervisorType.h>
12#include <aws/ec2/model/DeviceType.h>
13#include <aws/ec2/model/StateReason.h>
14#include <aws/ec2/model/VirtualizationType.h>
15#include <aws/ec2/model/BootModeValues.h>
16#include <aws/ec2/model/TpmSupportValues.h>
17#include <aws/ec2/model/ImdsSupportValues.h>
18#include <aws/ec2/model/ImageState.h>
19#include <aws/ec2/model/ArchitectureValues.h>
20#include <aws/ec2/model/ImageTypeValues.h>
21#include <aws/ec2/model/PlatformValues.h>
22#include <aws/ec2/model/BlockDeviceMapping.h>
23#include <aws/ec2/model/Tag.h>
24#include <aws/ec2/model/ProductCode.h>
25#include <utility>
26
27namespace Aws
28{
29namespace Utils
30{
31namespace Xml
32{
33 class XmlNode;
34} // namespace Xml
35} // namespace Utils
36namespace EC2
37{
38namespace Model
39{
40
46 class Image
47 {
48 public:
49 AWS_EC2_API Image() = default;
50 AWS_EC2_API Image(const Aws::Utils::Xml::XmlNode& xmlNode);
51 AWS_EC2_API Image& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
52
53 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
54 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
55
56
58
64 inline const Aws::String& GetPlatformDetails() const { return m_platformDetails; }
65 inline bool PlatformDetailsHasBeenSet() const { return m_platformDetailsHasBeenSet; }
66 template<typename PlatformDetailsT = Aws::String>
67 void SetPlatformDetails(PlatformDetailsT&& value) { m_platformDetailsHasBeenSet = true; m_platformDetails = std::forward<PlatformDetailsT>(value); }
68 template<typename PlatformDetailsT = Aws::String>
69 Image& WithPlatformDetails(PlatformDetailsT&& value) { SetPlatformDetails(std::forward<PlatformDetailsT>(value)); return *this;}
71
73
87 inline const Aws::String& GetUsageOperation() const { return m_usageOperation; }
88 inline bool UsageOperationHasBeenSet() const { return m_usageOperationHasBeenSet; }
89 template<typename UsageOperationT = Aws::String>
90 void SetUsageOperation(UsageOperationT&& value) { m_usageOperationHasBeenSet = true; m_usageOperation = std::forward<UsageOperationT>(value); }
91 template<typename UsageOperationT = Aws::String>
92 Image& WithUsageOperation(UsageOperationT&& value) { SetUsageOperation(std::forward<UsageOperationT>(value)); return *this;}
94
96
99 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
100 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
101 template<typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
102 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
103 template<typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
104 Image& WithBlockDeviceMappings(BlockDeviceMappingsT&& value) { SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value)); return *this;}
105 template<typename BlockDeviceMappingsT = BlockDeviceMapping>
106 Image& AddBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value)); return *this; }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template<typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
117 template<typename DescriptionT = Aws::String>
118 Image& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
120
122
125 inline bool GetEnaSupport() const { return m_enaSupport; }
126 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
127 inline void SetEnaSupport(bool value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
128 inline Image& WithEnaSupport(bool value) { SetEnaSupport(value); return *this;}
130
132
136 inline HypervisorType GetHypervisor() const { return m_hypervisor; }
137 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
138 inline void SetHypervisor(HypervisorType value) { m_hypervisorHasBeenSet = true; m_hypervisor = value; }
139 inline Image& WithHypervisor(HypervisorType value) { SetHypervisor(value); return *this;}
141
143
147 inline const Aws::String& GetImageOwnerAlias() const { return m_imageOwnerAlias; }
148 inline bool ImageOwnerAliasHasBeenSet() const { return m_imageOwnerAliasHasBeenSet; }
149 template<typename ImageOwnerAliasT = Aws::String>
150 void SetImageOwnerAlias(ImageOwnerAliasT&& value) { m_imageOwnerAliasHasBeenSet = true; m_imageOwnerAlias = std::forward<ImageOwnerAliasT>(value); }
151 template<typename ImageOwnerAliasT = Aws::String>
152 Image& WithImageOwnerAlias(ImageOwnerAliasT&& value) { SetImageOwnerAlias(std::forward<ImageOwnerAliasT>(value)); return *this;}
154
156
159 inline const Aws::String& GetName() const { return m_name; }
160 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
161 template<typename NameT = Aws::String>
162 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
163 template<typename NameT = Aws::String>
164 Image& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
166
168
172 inline const Aws::String& GetRootDeviceName() const { return m_rootDeviceName; }
173 inline bool RootDeviceNameHasBeenSet() const { return m_rootDeviceNameHasBeenSet; }
174 template<typename RootDeviceNameT = Aws::String>
175 void SetRootDeviceName(RootDeviceNameT&& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = std::forward<RootDeviceNameT>(value); }
176 template<typename RootDeviceNameT = Aws::String>
177 Image& WithRootDeviceName(RootDeviceNameT&& value) { SetRootDeviceName(std::forward<RootDeviceNameT>(value)); return *this;}
179
181
185 inline DeviceType GetRootDeviceType() const { return m_rootDeviceType; }
186 inline bool RootDeviceTypeHasBeenSet() const { return m_rootDeviceTypeHasBeenSet; }
187 inline void SetRootDeviceType(DeviceType value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = value; }
188 inline Image& WithRootDeviceType(DeviceType value) { SetRootDeviceType(value); return *this;}
190
192
196 inline const Aws::String& GetSriovNetSupport() const { return m_sriovNetSupport; }
197 inline bool SriovNetSupportHasBeenSet() const { return m_sriovNetSupportHasBeenSet; }
198 template<typename SriovNetSupportT = Aws::String>
199 void SetSriovNetSupport(SriovNetSupportT&& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = std::forward<SriovNetSupportT>(value); }
200 template<typename SriovNetSupportT = Aws::String>
201 Image& WithSriovNetSupport(SriovNetSupportT&& value) { SetSriovNetSupport(std::forward<SriovNetSupportT>(value)); return *this;}
203
205
208 inline const StateReason& GetStateReason() const { return m_stateReason; }
209 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
210 template<typename StateReasonT = StateReason>
211 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
212 template<typename StateReasonT = StateReason>
213 Image& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
215
217
220 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template<typename TagsT = Aws::Vector<Tag>>
223 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
224 template<typename TagsT = Aws::Vector<Tag>>
225 Image& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
226 template<typename TagsT = Tag>
227 Image& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
229
231
234 inline VirtualizationType GetVirtualizationType() const { return m_virtualizationType; }
235 inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; }
236 inline void SetVirtualizationType(VirtualizationType value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
239
241
247 inline BootModeValues GetBootMode() const { return m_bootMode; }
248 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
249 inline void SetBootMode(BootModeValues value) { m_bootModeHasBeenSet = true; m_bootMode = value; }
250 inline Image& WithBootMode(BootModeValues value) { SetBootMode(value); return *this;}
252
254
260 inline TpmSupportValues GetTpmSupport() const { return m_tpmSupport; }
261 inline bool TpmSupportHasBeenSet() const { return m_tpmSupportHasBeenSet; }
262 inline void SetTpmSupport(TpmSupportValues value) { m_tpmSupportHasBeenSet = true; m_tpmSupport = value; }
263 inline Image& WithTpmSupport(TpmSupportValues value) { SetTpmSupport(value); return *this;}
265
267
272 inline const Aws::String& GetDeprecationTime() const { return m_deprecationTime; }
273 inline bool DeprecationTimeHasBeenSet() const { return m_deprecationTimeHasBeenSet; }
274 template<typename DeprecationTimeT = Aws::String>
275 void SetDeprecationTime(DeprecationTimeT&& value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime = std::forward<DeprecationTimeT>(value); }
276 template<typename DeprecationTimeT = Aws::String>
277 Image& WithDeprecationTime(DeprecationTimeT&& value) { SetDeprecationTime(std::forward<DeprecationTimeT>(value)); return *this;}
279
281
291 inline ImdsSupportValues GetImdsSupport() const { return m_imdsSupport; }
292 inline bool ImdsSupportHasBeenSet() const { return m_imdsSupportHasBeenSet; }
293 inline void SetImdsSupport(ImdsSupportValues value) { m_imdsSupportHasBeenSet = true; m_imdsSupport = value; }
294 inline Image& WithImdsSupport(ImdsSupportValues value) { SetImdsSupport(value); return *this;}
296
298
304 inline const Aws::String& GetSourceInstanceId() const { return m_sourceInstanceId; }
305 inline bool SourceInstanceIdHasBeenSet() const { return m_sourceInstanceIdHasBeenSet; }
306 template<typename SourceInstanceIdT = Aws::String>
307 void SetSourceInstanceId(SourceInstanceIdT&& value) { m_sourceInstanceIdHasBeenSet = true; m_sourceInstanceId = std::forward<SourceInstanceIdT>(value); }
308 template<typename SourceInstanceIdT = Aws::String>
309 Image& WithSourceInstanceId(SourceInstanceIdT&& value) { SetSourceInstanceId(std::forward<SourceInstanceIdT>(value)); return *this;}
311
313
316 inline const Aws::String& GetDeregistrationProtection() const { return m_deregistrationProtection; }
317 inline bool DeregistrationProtectionHasBeenSet() const { return m_deregistrationProtectionHasBeenSet; }
318 template<typename DeregistrationProtectionT = Aws::String>
319 void SetDeregistrationProtection(DeregistrationProtectionT&& value) { m_deregistrationProtectionHasBeenSet = true; m_deregistrationProtection = std::forward<DeregistrationProtectionT>(value); }
320 template<typename DeregistrationProtectionT = Aws::String>
321 Image& WithDeregistrationProtection(DeregistrationProtectionT&& value) { SetDeregistrationProtection(std::forward<DeregistrationProtectionT>(value)); return *this;}
323
325
332 inline const Aws::String& GetLastLaunchedTime() const { return m_lastLaunchedTime; }
333 inline bool LastLaunchedTimeHasBeenSet() const { return m_lastLaunchedTimeHasBeenSet; }
334 template<typename LastLaunchedTimeT = Aws::String>
335 void SetLastLaunchedTime(LastLaunchedTimeT&& value) { m_lastLaunchedTimeHasBeenSet = true; m_lastLaunchedTime = std::forward<LastLaunchedTimeT>(value); }
336 template<typename LastLaunchedTimeT = Aws::String>
337 Image& WithLastLaunchedTime(LastLaunchedTimeT&& value) { SetLastLaunchedTime(std::forward<LastLaunchedTimeT>(value)); return *this;}
339
341
352 inline bool GetImageAllowed() const { return m_imageAllowed; }
353 inline bool ImageAllowedHasBeenSet() const { return m_imageAllowedHasBeenSet; }
354 inline void SetImageAllowed(bool value) { m_imageAllowedHasBeenSet = true; m_imageAllowed = value; }
355 inline Image& WithImageAllowed(bool value) { SetImageAllowed(value); return *this;}
357
359
362 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
363 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
364 template<typename SourceImageIdT = Aws::String>
365 void SetSourceImageId(SourceImageIdT&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::forward<SourceImageIdT>(value); }
366 template<typename SourceImageIdT = Aws::String>
367 Image& WithSourceImageId(SourceImageIdT&& value) { SetSourceImageId(std::forward<SourceImageIdT>(value)); return *this;}
369
371
374 inline const Aws::String& GetSourceImageRegion() const { return m_sourceImageRegion; }
375 inline bool SourceImageRegionHasBeenSet() const { return m_sourceImageRegionHasBeenSet; }
376 template<typename SourceImageRegionT = Aws::String>
377 void SetSourceImageRegion(SourceImageRegionT&& value) { m_sourceImageRegionHasBeenSet = true; m_sourceImageRegion = std::forward<SourceImageRegionT>(value); }
378 template<typename SourceImageRegionT = Aws::String>
379 Image& WithSourceImageRegion(SourceImageRegionT&& value) { SetSourceImageRegion(std::forward<SourceImageRegionT>(value)); return *this;}
381
383
389 inline bool GetFreeTierEligible() const { return m_freeTierEligible; }
390 inline bool FreeTierEligibleHasBeenSet() const { return m_freeTierEligibleHasBeenSet; }
391 inline void SetFreeTierEligible(bool value) { m_freeTierEligibleHasBeenSet = true; m_freeTierEligible = value; }
392 inline Image& WithFreeTierEligible(bool value) { SetFreeTierEligible(value); return *this;}
394
396
399 inline const Aws::String& GetImageId() const { return m_imageId; }
400 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
401 template<typename ImageIdT = Aws::String>
402 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
403 template<typename ImageIdT = Aws::String>
404 Image& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
406
408
411 inline const Aws::String& GetImageLocation() const { return m_imageLocation; }
412 inline bool ImageLocationHasBeenSet() const { return m_imageLocationHasBeenSet; }
413 template<typename ImageLocationT = Aws::String>
414 void SetImageLocation(ImageLocationT&& value) { m_imageLocationHasBeenSet = true; m_imageLocation = std::forward<ImageLocationT>(value); }
415 template<typename ImageLocationT = Aws::String>
416 Image& WithImageLocation(ImageLocationT&& value) { SetImageLocation(std::forward<ImageLocationT>(value)); return *this;}
418
420
424 inline ImageState GetState() const { return m_state; }
425 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
426 inline void SetState(ImageState value) { m_stateHasBeenSet = true; m_state = value; }
427 inline Image& WithState(ImageState value) { SetState(value); return *this;}
429
431
434 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
435 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
436 template<typename OwnerIdT = Aws::String>
437 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
438 template<typename OwnerIdT = Aws::String>
439 Image& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
441
443
446 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
447 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
448 template<typename CreationDateT = Aws::String>
449 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
450 template<typename CreationDateT = Aws::String>
451 Image& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
453
455
460 inline bool GetPublic() const { return m_public; }
461 inline bool PublicHasBeenSet() const { return m_publicHasBeenSet; }
462 inline void SetPublic(bool value) { m_publicHasBeenSet = true; m_public = value; }
463 inline Image& WithPublic(bool value) { SetPublic(value); return *this;}
465
467
470 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
471 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
472 template<typename ProductCodesT = Aws::Vector<ProductCode>>
473 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::forward<ProductCodesT>(value); }
474 template<typename ProductCodesT = Aws::Vector<ProductCode>>
475 Image& WithProductCodes(ProductCodesT&& value) { SetProductCodes(std::forward<ProductCodesT>(value)); return *this;}
476 template<typename ProductCodesT = ProductCode>
477 Image& AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value)); return *this; }
479
481
484 inline ArchitectureValues GetArchitecture() const { return m_architecture; }
485 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
486 inline void SetArchitecture(ArchitectureValues value) { m_architectureHasBeenSet = true; m_architecture = value; }
487 inline Image& WithArchitecture(ArchitectureValues value) { SetArchitecture(value); return *this;}
489
491
494 inline ImageTypeValues GetImageType() const { return m_imageType; }
495 inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; }
496 inline void SetImageType(ImageTypeValues value) { m_imageTypeHasBeenSet = true; m_imageType = value; }
497 inline Image& WithImageType(ImageTypeValues value) { SetImageType(value); return *this;}
499
501
505 inline const Aws::String& GetKernelId() const { return m_kernelId; }
506 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
507 template<typename KernelIdT = Aws::String>
508 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::forward<KernelIdT>(value); }
509 template<typename KernelIdT = Aws::String>
510 Image& WithKernelId(KernelIdT&& value) { SetKernelId(std::forward<KernelIdT>(value)); return *this;}
512
514
518 inline const Aws::String& GetRamdiskId() const { return m_ramdiskId; }
519 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
520 template<typename RamdiskIdT = Aws::String>
521 void SetRamdiskId(RamdiskIdT&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::forward<RamdiskIdT>(value); }
522 template<typename RamdiskIdT = Aws::String>
523 Image& WithRamdiskId(RamdiskIdT&& value) { SetRamdiskId(std::forward<RamdiskIdT>(value)); return *this;}
525
527
531 inline PlatformValues GetPlatform() const { return m_platform; }
532 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
533 inline void SetPlatform(PlatformValues value) { m_platformHasBeenSet = true; m_platform = value; }
534 inline Image& WithPlatform(PlatformValues value) { SetPlatform(value); return *this;}
536 private:
537
538 Aws::String m_platformDetails;
539 bool m_platformDetailsHasBeenSet = false;
540
541 Aws::String m_usageOperation;
542 bool m_usageOperationHasBeenSet = false;
543
544 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
545 bool m_blockDeviceMappingsHasBeenSet = false;
546
547 Aws::String m_description;
548 bool m_descriptionHasBeenSet = false;
549
550 bool m_enaSupport{false};
551 bool m_enaSupportHasBeenSet = false;
552
554 bool m_hypervisorHasBeenSet = false;
555
556 Aws::String m_imageOwnerAlias;
557 bool m_imageOwnerAliasHasBeenSet = false;
558
559 Aws::String m_name;
560 bool m_nameHasBeenSet = false;
561
562 Aws::String m_rootDeviceName;
563 bool m_rootDeviceNameHasBeenSet = false;
564
565 DeviceType m_rootDeviceType{DeviceType::NOT_SET};
566 bool m_rootDeviceTypeHasBeenSet = false;
567
568 Aws::String m_sriovNetSupport;
569 bool m_sriovNetSupportHasBeenSet = false;
570
571 StateReason m_stateReason;
572 bool m_stateReasonHasBeenSet = false;
573
574 Aws::Vector<Tag> m_tags;
575 bool m_tagsHasBeenSet = false;
576
578 bool m_virtualizationTypeHasBeenSet = false;
579
581 bool m_bootModeHasBeenSet = false;
582
584 bool m_tpmSupportHasBeenSet = false;
585
586 Aws::String m_deprecationTime;
587 bool m_deprecationTimeHasBeenSet = false;
588
590 bool m_imdsSupportHasBeenSet = false;
591
592 Aws::String m_sourceInstanceId;
593 bool m_sourceInstanceIdHasBeenSet = false;
594
595 Aws::String m_deregistrationProtection;
596 bool m_deregistrationProtectionHasBeenSet = false;
597
598 Aws::String m_lastLaunchedTime;
599 bool m_lastLaunchedTimeHasBeenSet = false;
600
601 bool m_imageAllowed{false};
602 bool m_imageAllowedHasBeenSet = false;
603
604 Aws::String m_sourceImageId;
605 bool m_sourceImageIdHasBeenSet = false;
606
607 Aws::String m_sourceImageRegion;
608 bool m_sourceImageRegionHasBeenSet = false;
609
610 bool m_freeTierEligible{false};
611 bool m_freeTierEligibleHasBeenSet = false;
612
613 Aws::String m_imageId;
614 bool m_imageIdHasBeenSet = false;
615
616 Aws::String m_imageLocation;
617 bool m_imageLocationHasBeenSet = false;
618
620 bool m_stateHasBeenSet = false;
621
622 Aws::String m_ownerId;
623 bool m_ownerIdHasBeenSet = false;
624
625 Aws::String m_creationDate;
626 bool m_creationDateHasBeenSet = false;
627
628 bool m_public{false};
629 bool m_publicHasBeenSet = false;
630
631 Aws::Vector<ProductCode> m_productCodes;
632 bool m_productCodesHasBeenSet = false;
633
635 bool m_architectureHasBeenSet = false;
636
638 bool m_imageTypeHasBeenSet = false;
639
640 Aws::String m_kernelId;
641 bool m_kernelIdHasBeenSet = false;
642
643 Aws::String m_ramdiskId;
644 bool m_ramdiskIdHasBeenSet = false;
645
647 bool m_platformHasBeenSet = false;
648 };
649
650} // namespace Model
651} // namespace EC2
652} // namespace Aws
bool PlatformHasBeenSet() const
Definition Image.h:532
bool DeprecationTimeHasBeenSet() const
Definition Image.h:273
Image & WithTpmSupport(TpmSupportValues value)
Definition Image.h:263
Image & WithImageAllowed(bool value)
Definition Image.h:355
const Aws::String & GetDeprecationTime() const
Definition Image.h:272
BootModeValues GetBootMode() const
Definition Image.h:247
ArchitectureValues GetArchitecture() const
Definition Image.h:484
bool StateHasBeenSet() const
Definition Image.h:425
bool TpmSupportHasBeenSet() const
Definition Image.h:261
bool HypervisorHasBeenSet() const
Definition Image.h:137
void SetSourceImageId(SourceImageIdT &&value)
Definition Image.h:365
Image & AddTags(TagsT &&value)
Definition Image.h:227
void SetState(ImageState value)
Definition Image.h:426
Image & WithDescription(DescriptionT &&value)
Definition Image.h:118
bool RamdiskIdHasBeenSet() const
Definition Image.h:519
Image & WithImageType(ImageTypeValues value)
Definition Image.h:497
void SetTags(TagsT &&value)
Definition Image.h:223
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetImageLocation() const
Definition Image.h:411
void SetImageLocation(ImageLocationT &&value)
Definition Image.h:414
void SetDeregistrationProtection(DeregistrationProtectionT &&value)
Definition Image.h:319
bool EnaSupportHasBeenSet() const
Definition Image.h:126
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
Definition Image.h:102
void SetRootDeviceType(DeviceType value)
Definition Image.h:187
bool ImageTypeHasBeenSet() const
Definition Image.h:495
void SetRamdiskId(RamdiskIdT &&value)
Definition Image.h:521
const Aws::String & GetOwnerId() const
Definition Image.h:434
const Aws::String & GetImageId() const
Definition Image.h:399
Image & WithSourceInstanceId(SourceInstanceIdT &&value)
Definition Image.h:309
Image & WithDeprecationTime(DeprecationTimeT &&value)
Definition Image.h:277
bool ImageLocationHasBeenSet() const
Definition Image.h:412
void SetOwnerId(OwnerIdT &&value)
Definition Image.h:437
Image & WithPlatform(PlatformValues value)
Definition Image.h:534
bool RootDeviceNameHasBeenSet() const
Definition Image.h:173
PlatformValues GetPlatform() const
Definition Image.h:531
bool NameHasBeenSet() const
Definition Image.h:160
Image & WithLastLaunchedTime(LastLaunchedTimeT &&value)
Definition Image.h:337
const Aws::String & GetRootDeviceName() const
Definition Image.h:172
void SetSourceImageRegion(SourceImageRegionT &&value)
Definition Image.h:377
bool TagsHasBeenSet() const
Definition Image.h:221
bool DeregistrationProtectionHasBeenSet() const
Definition Image.h:317
const Aws::String & GetPlatformDetails() const
Definition Image.h:64
bool OwnerIdHasBeenSet() const
Definition Image.h:435
void SetHypervisor(HypervisorType value)
Definition Image.h:138
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Image & WithImageLocation(ImageLocationT &&value)
Definition Image.h:416
void SetImageAllowed(bool value)
Definition Image.h:354
void SetName(NameT &&value)
Definition Image.h:162
const Aws::String & GetKernelId() const
Definition Image.h:505
Image & WithRamdiskId(RamdiskIdT &&value)
Definition Image.h:523
const Aws::String & GetCreationDate() const
Definition Image.h:446
bool KernelIdHasBeenSet() const
Definition Image.h:506
bool GetFreeTierEligible() const
Definition Image.h:389
void SetCreationDate(CreationDateT &&value)
Definition Image.h:449
Image & WithArchitecture(ArchitectureValues value)
Definition Image.h:487
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition Image.h:470
DeviceType GetRootDeviceType() const
Definition Image.h:185
Image & WithProductCodes(ProductCodesT &&value)
Definition Image.h:475
const Aws::String & GetImageOwnerAlias() const
Definition Image.h:147
bool ImageOwnerAliasHasBeenSet() const
Definition Image.h:148
Image & WithBootMode(BootModeValues value)
Definition Image.h:250
bool GetPublic() const
Definition Image.h:460
Image & WithPublic(bool value)
Definition Image.h:463
Image & WithOwnerId(OwnerIdT &&value)
Definition Image.h:439
void SetEnaSupport(bool value)
Definition Image.h:127
void SetPublic(bool value)
Definition Image.h:462
const Aws::String & GetName() const
Definition Image.h:159
void SetPlatformDetails(PlatformDetailsT &&value)
Definition Image.h:67
Image & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
Definition Image.h:106
Image & WithDeregistrationProtection(DeregistrationProtectionT &&value)
Definition Image.h:321
Image & WithImageOwnerAlias(ImageOwnerAliasT &&value)
Definition Image.h:152
Image & WithState(ImageState value)
Definition Image.h:427
Image & WithPlatformDetails(PlatformDetailsT &&value)
Definition Image.h:69
const Aws::Vector< Tag > & GetTags() const
Definition Image.h:220
void SetImageId(ImageIdT &&value)
Definition Image.h:402
bool UsageOperationHasBeenSet() const
Definition Image.h:88
bool SourceImageRegionHasBeenSet() const
Definition Image.h:375
bool ArchitectureHasBeenSet() const
Definition Image.h:485
bool GetEnaSupport() const
Definition Image.h:125
const Aws::String & GetDescription() const
Definition Image.h:113
bool ImageAllowedHasBeenSet() const
Definition Image.h:353
void SetPlatform(PlatformValues value)
Definition Image.h:533
Image & WithUsageOperation(UsageOperationT &&value)
Definition Image.h:92
const StateReason & GetStateReason() const
Definition Image.h:208
void SetStateReason(StateReasonT &&value)
Definition Image.h:211
bool PublicHasBeenSet() const
Definition Image.h:461
TpmSupportValues GetTpmSupport() const
Definition Image.h:260
void SetTpmSupport(TpmSupportValues value)
Definition Image.h:262
void SetProductCodes(ProductCodesT &&value)
Definition Image.h:473
AWS_EC2_API Image(const Aws::Utils::Xml::XmlNode &xmlNode)
bool BootModeHasBeenSet() const
Definition Image.h:248
Image & WithTags(TagsT &&value)
Definition Image.h:225
void SetRootDeviceName(RootDeviceNameT &&value)
Definition Image.h:175
void SetImageType(ImageTypeValues value)
Definition Image.h:496
bool GetImageAllowed() const
Definition Image.h:352
bool SourceImageIdHasBeenSet() const
Definition Image.h:363
Image & WithImdsSupport(ImdsSupportValues value)
Definition Image.h:294
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
Definition Image.h:99
void SetImageOwnerAlias(ImageOwnerAliasT &&value)
Definition Image.h:150
void SetArchitecture(ArchitectureValues value)
Definition Image.h:486
bool LastLaunchedTimeHasBeenSet() const
Definition Image.h:333
bool FreeTierEligibleHasBeenSet() const
Definition Image.h:390
bool PlatformDetailsHasBeenSet() const
Definition Image.h:65
ImdsSupportValues GetImdsSupport() const
Definition Image.h:291
HypervisorType GetHypervisor() const
Definition Image.h:136
Image & WithEnaSupport(bool value)
Definition Image.h:128
ImageTypeValues GetImageType() const
Definition Image.h:494
void SetBootMode(BootModeValues value)
Definition Image.h:249
Image & WithName(NameT &&value)
Definition Image.h:164
bool SriovNetSupportHasBeenSet() const
Definition Image.h:197
const Aws::String & GetDeregistrationProtection() const
Definition Image.h:316
void SetImdsSupport(ImdsSupportValues value)
Definition Image.h:293
Image & WithFreeTierEligible(bool value)
Definition Image.h:392
bool DescriptionHasBeenSet() const
Definition Image.h:114
AWS_EC2_API Image()=default
Image & WithSriovNetSupport(SriovNetSupportT &&value)
Definition Image.h:201
const Aws::String & GetSriovNetSupport() const
Definition Image.h:196
Image & WithSourceImageRegion(SourceImageRegionT &&value)
Definition Image.h:379
bool SourceInstanceIdHasBeenSet() const
Definition Image.h:305
void SetVirtualizationType(VirtualizationType value)
Definition Image.h:236
Image & WithRootDeviceType(DeviceType value)
Definition Image.h:188
const Aws::String & GetSourceImageRegion() const
Definition Image.h:374
Image & WithRootDeviceName(RootDeviceNameT &&value)
Definition Image.h:177
const Aws::String & GetSourceImageId() const
Definition Image.h:362
const Aws::String & GetLastLaunchedTime() const
Definition Image.h:332
bool VirtualizationTypeHasBeenSet() const
Definition Image.h:235
void SetSourceInstanceId(SourceInstanceIdT &&value)
Definition Image.h:307
bool BlockDeviceMappingsHasBeenSet() const
Definition Image.h:100
Image & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
Definition Image.h:104
bool ImdsSupportHasBeenSet() const
Definition Image.h:292
VirtualizationType GetVirtualizationType() const
Definition Image.h:234
Image & WithHypervisor(HypervisorType value)
Definition Image.h:139
void SetFreeTierEligible(bool value)
Definition Image.h:391
Image & WithStateReason(StateReasonT &&value)
Definition Image.h:213
Image & WithImageId(ImageIdT &&value)
Definition Image.h:404
void SetSriovNetSupport(SriovNetSupportT &&value)
Definition Image.h:199
bool CreationDateHasBeenSet() const
Definition Image.h:447
AWS_EC2_API Image & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLastLaunchedTime(LastLaunchedTimeT &&value)
Definition Image.h:335
void SetDeprecationTime(DeprecationTimeT &&value)
Definition Image.h:275
const Aws::String & GetRamdiskId() const
Definition Image.h:518
void SetKernelId(KernelIdT &&value)
Definition Image.h:508
bool StateReasonHasBeenSet() const
Definition Image.h:209
void SetDescription(DescriptionT &&value)
Definition Image.h:116
void SetUsageOperation(UsageOperationT &&value)
Definition Image.h:90
Image & WithKernelId(KernelIdT &&value)
Definition Image.h:510
ImageState GetState() const
Definition Image.h:424
Image & WithCreationDate(CreationDateT &&value)
Definition Image.h:451
Image & AddProductCodes(ProductCodesT &&value)
Definition Image.h:477
Image & WithSourceImageId(SourceImageIdT &&value)
Definition Image.h:367
bool RootDeviceTypeHasBeenSet() const
Definition Image.h:186
const Aws::String & GetSourceInstanceId() const
Definition Image.h:304
bool ImageIdHasBeenSet() const
Definition Image.h:400
Image & WithVirtualizationType(VirtualizationType value)
Definition Image.h:237
const Aws::String & GetUsageOperation() const
Definition Image.h:87
bool ProductCodesHasBeenSet() const
Definition Image.h:471
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