AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Image.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/ArchitectureValues.h>
12#include <aws/ec2/model/BlockDeviceMapping.h>
13#include <aws/ec2/model/BootModeValues.h>
14#include <aws/ec2/model/DeviceType.h>
15#include <aws/ec2/model/HypervisorType.h>
16#include <aws/ec2/model/ImageState.h>
17#include <aws/ec2/model/ImageTypeValues.h>
18#include <aws/ec2/model/ImdsSupportValues.h>
19#include <aws/ec2/model/PlatformValues.h>
20#include <aws/ec2/model/ProductCode.h>
21#include <aws/ec2/model/StateReason.h>
22#include <aws/ec2/model/Tag.h>
23#include <aws/ec2/model/TpmSupportValues.h>
24#include <aws/ec2/model/VirtualizationType.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Xml {
31class XmlNode;
32} // namespace Xml
33} // namespace Utils
34namespace EC2 {
35namespace Model {
36
42class Image {
43 public:
44 AWS_EC2_API Image() = default;
45 AWS_EC2_API Image(const Aws::Utils::Xml::XmlNode& xmlNode);
46 AWS_EC2_API Image& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
52
58 inline const Aws::String& GetPlatformDetails() const { return m_platformDetails; }
59 inline bool PlatformDetailsHasBeenSet() const { return m_platformDetailsHasBeenSet; }
60 template <typename PlatformDetailsT = Aws::String>
61 void SetPlatformDetails(PlatformDetailsT&& value) {
62 m_platformDetailsHasBeenSet = true;
63 m_platformDetails = std::forward<PlatformDetailsT>(value);
64 }
65 template <typename PlatformDetailsT = Aws::String>
66 Image& WithPlatformDetails(PlatformDetailsT&& value) {
67 SetPlatformDetails(std::forward<PlatformDetailsT>(value));
68 return *this;
69 }
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) {
91 m_usageOperationHasBeenSet = true;
92 m_usageOperation = std::forward<UsageOperationT>(value);
93 }
94 template <typename UsageOperationT = Aws::String>
95 Image& WithUsageOperation(UsageOperationT&& value) {
96 SetUsageOperation(std::forward<UsageOperationT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const { return m_blockDeviceMappings; }
106 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
107 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
108 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) {
109 m_blockDeviceMappingsHasBeenSet = true;
110 m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value);
111 }
112 template <typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
113 Image& WithBlockDeviceMappings(BlockDeviceMappingsT&& value) {
114 SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value));
115 return *this;
116 }
117 template <typename BlockDeviceMappingsT = BlockDeviceMapping>
118 Image& AddBlockDeviceMappings(BlockDeviceMappingsT&& value) {
119 m_blockDeviceMappingsHasBeenSet = true;
120 m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 template <typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) {
133 m_descriptionHasBeenSet = true;
134 m_description = std::forward<DescriptionT>(value);
135 }
136 template <typename DescriptionT = Aws::String>
137 Image& WithDescription(DescriptionT&& value) {
138 SetDescription(std::forward<DescriptionT>(value));
139 return *this;
140 }
142
144
147 inline bool GetEnaSupport() const { return m_enaSupport; }
148 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
149 inline void SetEnaSupport(bool value) {
150 m_enaSupportHasBeenSet = true;
151 m_enaSupport = value;
152 }
153 inline Image& WithEnaSupport(bool value) {
154 SetEnaSupport(value);
155 return *this;
156 }
158
160
164 inline HypervisorType GetHypervisor() const { return m_hypervisor; }
165 inline bool HypervisorHasBeenSet() const { return m_hypervisorHasBeenSet; }
166 inline void SetHypervisor(HypervisorType value) {
167 m_hypervisorHasBeenSet = true;
168 m_hypervisor = value;
169 }
171 SetHypervisor(value);
172 return *this;
173 }
175
177
181 inline const Aws::String& GetImageOwnerAlias() const { return m_imageOwnerAlias; }
182 inline bool ImageOwnerAliasHasBeenSet() const { return m_imageOwnerAliasHasBeenSet; }
183 template <typename ImageOwnerAliasT = Aws::String>
184 void SetImageOwnerAlias(ImageOwnerAliasT&& value) {
185 m_imageOwnerAliasHasBeenSet = true;
186 m_imageOwnerAlias = std::forward<ImageOwnerAliasT>(value);
187 }
188 template <typename ImageOwnerAliasT = Aws::String>
189 Image& WithImageOwnerAlias(ImageOwnerAliasT&& value) {
190 SetImageOwnerAlias(std::forward<ImageOwnerAliasT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::String& GetName() const { return m_name; }
200 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
201 template <typename NameT = Aws::String>
202 void SetName(NameT&& value) {
203 m_nameHasBeenSet = true;
204 m_name = std::forward<NameT>(value);
205 }
206 template <typename NameT = Aws::String>
207 Image& WithName(NameT&& value) {
208 SetName(std::forward<NameT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::String& GetRootDeviceName() const { return m_rootDeviceName; }
219 inline bool RootDeviceNameHasBeenSet() const { return m_rootDeviceNameHasBeenSet; }
220 template <typename RootDeviceNameT = Aws::String>
221 void SetRootDeviceName(RootDeviceNameT&& value) {
222 m_rootDeviceNameHasBeenSet = true;
223 m_rootDeviceName = std::forward<RootDeviceNameT>(value);
224 }
225 template <typename RootDeviceNameT = Aws::String>
226 Image& WithRootDeviceName(RootDeviceNameT&& value) {
227 SetRootDeviceName(std::forward<RootDeviceNameT>(value));
228 return *this;
229 }
231
233
237 inline DeviceType GetRootDeviceType() const { return m_rootDeviceType; }
238 inline bool RootDeviceTypeHasBeenSet() const { return m_rootDeviceTypeHasBeenSet; }
239 inline void SetRootDeviceType(DeviceType value) {
240 m_rootDeviceTypeHasBeenSet = true;
241 m_rootDeviceType = value;
242 }
244 SetRootDeviceType(value);
245 return *this;
246 }
248
250
254 inline const Aws::String& GetSriovNetSupport() const { return m_sriovNetSupport; }
255 inline bool SriovNetSupportHasBeenSet() const { return m_sriovNetSupportHasBeenSet; }
256 template <typename SriovNetSupportT = Aws::String>
257 void SetSriovNetSupport(SriovNetSupportT&& value) {
258 m_sriovNetSupportHasBeenSet = true;
259 m_sriovNetSupport = std::forward<SriovNetSupportT>(value);
260 }
261 template <typename SriovNetSupportT = Aws::String>
262 Image& WithSriovNetSupport(SriovNetSupportT&& value) {
263 SetSriovNetSupport(std::forward<SriovNetSupportT>(value));
264 return *this;
265 }
267
269
272 inline const StateReason& GetStateReason() const { return m_stateReason; }
273 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
274 template <typename StateReasonT = StateReason>
275 void SetStateReason(StateReasonT&& value) {
276 m_stateReasonHasBeenSet = true;
277 m_stateReason = std::forward<StateReasonT>(value);
278 }
279 template <typename StateReasonT = StateReason>
280 Image& WithStateReason(StateReasonT&& value) {
281 SetStateReason(std::forward<StateReasonT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
291 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
292 template <typename TagsT = Aws::Vector<Tag>>
293 void SetTags(TagsT&& value) {
294 m_tagsHasBeenSet = true;
295 m_tags = std::forward<TagsT>(value);
296 }
297 template <typename TagsT = Aws::Vector<Tag>>
298 Image& WithTags(TagsT&& value) {
299 SetTags(std::forward<TagsT>(value));
300 return *this;
301 }
302 template <typename TagsT = Tag>
303 Image& AddTags(TagsT&& value) {
304 m_tagsHasBeenSet = true;
305 m_tags.emplace_back(std::forward<TagsT>(value));
306 return *this;
307 }
309
311
314 inline VirtualizationType GetVirtualizationType() const { return m_virtualizationType; }
315 inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; }
317 m_virtualizationTypeHasBeenSet = true;
318 m_virtualizationType = value;
319 }
322 return *this;
323 }
325
327
333 inline BootModeValues GetBootMode() const { return m_bootMode; }
334 inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; }
335 inline void SetBootMode(BootModeValues value) {
336 m_bootModeHasBeenSet = true;
337 m_bootMode = value;
338 }
340 SetBootMode(value);
341 return *this;
342 }
344
346
352 inline TpmSupportValues GetTpmSupport() const { return m_tpmSupport; }
353 inline bool TpmSupportHasBeenSet() const { return m_tpmSupportHasBeenSet; }
354 inline void SetTpmSupport(TpmSupportValues value) {
355 m_tpmSupportHasBeenSet = true;
356 m_tpmSupport = value;
357 }
359 SetTpmSupport(value);
360 return *this;
361 }
363
365
370 inline const Aws::String& GetDeprecationTime() const { return m_deprecationTime; }
371 inline bool DeprecationTimeHasBeenSet() const { return m_deprecationTimeHasBeenSet; }
372 template <typename DeprecationTimeT = Aws::String>
373 void SetDeprecationTime(DeprecationTimeT&& value) {
374 m_deprecationTimeHasBeenSet = true;
375 m_deprecationTime = std::forward<DeprecationTimeT>(value);
376 }
377 template <typename DeprecationTimeT = Aws::String>
378 Image& WithDeprecationTime(DeprecationTimeT&& value) {
379 SetDeprecationTime(std::forward<DeprecationTimeT>(value));
380 return *this;
381 }
383
385
395 inline ImdsSupportValues GetImdsSupport() const { return m_imdsSupport; }
396 inline bool ImdsSupportHasBeenSet() const { return m_imdsSupportHasBeenSet; }
398 m_imdsSupportHasBeenSet = true;
399 m_imdsSupport = value;
400 }
402 SetImdsSupport(value);
403 return *this;
404 }
406
408
414 inline const Aws::String& GetSourceInstanceId() const { return m_sourceInstanceId; }
415 inline bool SourceInstanceIdHasBeenSet() const { return m_sourceInstanceIdHasBeenSet; }
416 template <typename SourceInstanceIdT = Aws::String>
417 void SetSourceInstanceId(SourceInstanceIdT&& value) {
418 m_sourceInstanceIdHasBeenSet = true;
419 m_sourceInstanceId = std::forward<SourceInstanceIdT>(value);
420 }
421 template <typename SourceInstanceIdT = Aws::String>
422 Image& WithSourceInstanceId(SourceInstanceIdT&& value) {
423 SetSourceInstanceId(std::forward<SourceInstanceIdT>(value));
424 return *this;
425 }
427
429
432 inline const Aws::String& GetDeregistrationProtection() const { return m_deregistrationProtection; }
433 inline bool DeregistrationProtectionHasBeenSet() const { return m_deregistrationProtectionHasBeenSet; }
434 template <typename DeregistrationProtectionT = Aws::String>
435 void SetDeregistrationProtection(DeregistrationProtectionT&& value) {
436 m_deregistrationProtectionHasBeenSet = true;
437 m_deregistrationProtection = std::forward<DeregistrationProtectionT>(value);
438 }
439 template <typename DeregistrationProtectionT = Aws::String>
440 Image& WithDeregistrationProtection(DeregistrationProtectionT&& value) {
441 SetDeregistrationProtection(std::forward<DeregistrationProtectionT>(value));
442 return *this;
443 }
445
447
454 inline const Aws::String& GetLastLaunchedTime() const { return m_lastLaunchedTime; }
455 inline bool LastLaunchedTimeHasBeenSet() const { return m_lastLaunchedTimeHasBeenSet; }
456 template <typename LastLaunchedTimeT = Aws::String>
457 void SetLastLaunchedTime(LastLaunchedTimeT&& value) {
458 m_lastLaunchedTimeHasBeenSet = true;
459 m_lastLaunchedTime = std::forward<LastLaunchedTimeT>(value);
460 }
461 template <typename LastLaunchedTimeT = Aws::String>
462 Image& WithLastLaunchedTime(LastLaunchedTimeT&& value) {
463 SetLastLaunchedTime(std::forward<LastLaunchedTimeT>(value));
464 return *this;
465 }
467
469
480 inline bool GetImageAllowed() const { return m_imageAllowed; }
481 inline bool ImageAllowedHasBeenSet() const { return m_imageAllowedHasBeenSet; }
482 inline void SetImageAllowed(bool value) {
483 m_imageAllowedHasBeenSet = true;
484 m_imageAllowed = value;
485 }
486 inline Image& WithImageAllowed(bool value) {
487 SetImageAllowed(value);
488 return *this;
489 }
491
493
496 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
497 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
498 template <typename SourceImageIdT = Aws::String>
499 void SetSourceImageId(SourceImageIdT&& value) {
500 m_sourceImageIdHasBeenSet = true;
501 m_sourceImageId = std::forward<SourceImageIdT>(value);
502 }
503 template <typename SourceImageIdT = Aws::String>
504 Image& WithSourceImageId(SourceImageIdT&& value) {
505 SetSourceImageId(std::forward<SourceImageIdT>(value));
506 return *this;
507 }
509
511
514 inline const Aws::String& GetSourceImageRegion() const { return m_sourceImageRegion; }
515 inline bool SourceImageRegionHasBeenSet() const { return m_sourceImageRegionHasBeenSet; }
516 template <typename SourceImageRegionT = Aws::String>
517 void SetSourceImageRegion(SourceImageRegionT&& value) {
518 m_sourceImageRegionHasBeenSet = true;
519 m_sourceImageRegion = std::forward<SourceImageRegionT>(value);
520 }
521 template <typename SourceImageRegionT = Aws::String>
522 Image& WithSourceImageRegion(SourceImageRegionT&& value) {
523 SetSourceImageRegion(std::forward<SourceImageRegionT>(value));
524 return *this;
525 }
527
529
535 inline bool GetFreeTierEligible() const { return m_freeTierEligible; }
536 inline bool FreeTierEligibleHasBeenSet() const { return m_freeTierEligibleHasBeenSet; }
537 inline void SetFreeTierEligible(bool value) {
538 m_freeTierEligibleHasBeenSet = true;
539 m_freeTierEligible = value;
540 }
541 inline Image& WithFreeTierEligible(bool value) {
542 SetFreeTierEligible(value);
543 return *this;
544 }
546
548
551 inline const Aws::String& GetImageId() const { return m_imageId; }
552 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
553 template <typename ImageIdT = Aws::String>
554 void SetImageId(ImageIdT&& value) {
555 m_imageIdHasBeenSet = true;
556 m_imageId = std::forward<ImageIdT>(value);
557 }
558 template <typename ImageIdT = Aws::String>
559 Image& WithImageId(ImageIdT&& value) {
560 SetImageId(std::forward<ImageIdT>(value));
561 return *this;
562 }
564
566
569 inline const Aws::String& GetImageLocation() const { return m_imageLocation; }
570 inline bool ImageLocationHasBeenSet() const { return m_imageLocationHasBeenSet; }
571 template <typename ImageLocationT = Aws::String>
572 void SetImageLocation(ImageLocationT&& value) {
573 m_imageLocationHasBeenSet = true;
574 m_imageLocation = std::forward<ImageLocationT>(value);
575 }
576 template <typename ImageLocationT = Aws::String>
577 Image& WithImageLocation(ImageLocationT&& value) {
578 SetImageLocation(std::forward<ImageLocationT>(value));
579 return *this;
580 }
582
584
588 inline ImageState GetState() const { return m_state; }
589 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
590 inline void SetState(ImageState value) {
591 m_stateHasBeenSet = true;
592 m_state = value;
593 }
594 inline Image& WithState(ImageState value) {
595 SetState(value);
596 return *this;
597 }
599
601
604 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
605 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
606 template <typename OwnerIdT = Aws::String>
607 void SetOwnerId(OwnerIdT&& value) {
608 m_ownerIdHasBeenSet = true;
609 m_ownerId = std::forward<OwnerIdT>(value);
610 }
611 template <typename OwnerIdT = Aws::String>
612 Image& WithOwnerId(OwnerIdT&& value) {
613 SetOwnerId(std::forward<OwnerIdT>(value));
614 return *this;
615 }
617
619
622 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
623 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
624 template <typename CreationDateT = Aws::String>
625 void SetCreationDate(CreationDateT&& value) {
626 m_creationDateHasBeenSet = true;
627 m_creationDate = std::forward<CreationDateT>(value);
628 }
629 template <typename CreationDateT = Aws::String>
630 Image& WithCreationDate(CreationDateT&& value) {
631 SetCreationDate(std::forward<CreationDateT>(value));
632 return *this;
633 }
635
637
642 inline bool GetPublic() const { return m_public; }
643 inline bool PublicHasBeenSet() const { return m_publicHasBeenSet; }
644 inline void SetPublic(bool value) {
645 m_publicHasBeenSet = true;
646 m_public = value;
647 }
648 inline Image& WithPublic(bool value) {
649 SetPublic(value);
650 return *this;
651 }
653
655
658 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
659 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
660 template <typename ProductCodesT = Aws::Vector<ProductCode>>
661 void SetProductCodes(ProductCodesT&& value) {
662 m_productCodesHasBeenSet = true;
663 m_productCodes = std::forward<ProductCodesT>(value);
664 }
665 template <typename ProductCodesT = Aws::Vector<ProductCode>>
666 Image& WithProductCodes(ProductCodesT&& value) {
667 SetProductCodes(std::forward<ProductCodesT>(value));
668 return *this;
669 }
670 template <typename ProductCodesT = ProductCode>
671 Image& AddProductCodes(ProductCodesT&& value) {
672 m_productCodesHasBeenSet = true;
673 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
674 return *this;
675 }
677
679
682 inline ArchitectureValues GetArchitecture() const { return m_architecture; }
683 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
685 m_architectureHasBeenSet = true;
686 m_architecture = value;
687 }
689 SetArchitecture(value);
690 return *this;
691 }
693
695
698 inline ImageTypeValues GetImageType() const { return m_imageType; }
699 inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; }
700 inline void SetImageType(ImageTypeValues value) {
701 m_imageTypeHasBeenSet = true;
702 m_imageType = value;
703 }
705 SetImageType(value);
706 return *this;
707 }
709
711
715 inline const Aws::String& GetKernelId() const { return m_kernelId; }
716 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
717 template <typename KernelIdT = Aws::String>
718 void SetKernelId(KernelIdT&& value) {
719 m_kernelIdHasBeenSet = true;
720 m_kernelId = std::forward<KernelIdT>(value);
721 }
722 template <typename KernelIdT = Aws::String>
723 Image& WithKernelId(KernelIdT&& value) {
724 SetKernelId(std::forward<KernelIdT>(value));
725 return *this;
726 }
728
730
734 inline const Aws::String& GetRamdiskId() const { return m_ramdiskId; }
735 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
736 template <typename RamdiskIdT = Aws::String>
737 void SetRamdiskId(RamdiskIdT&& value) {
738 m_ramdiskIdHasBeenSet = true;
739 m_ramdiskId = std::forward<RamdiskIdT>(value);
740 }
741 template <typename RamdiskIdT = Aws::String>
742 Image& WithRamdiskId(RamdiskIdT&& value) {
743 SetRamdiskId(std::forward<RamdiskIdT>(value));
744 return *this;
745 }
747
749
753 inline PlatformValues GetPlatform() const { return m_platform; }
754 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
755 inline void SetPlatform(PlatformValues value) {
756 m_platformHasBeenSet = true;
757 m_platform = value;
758 }
760 SetPlatform(value);
761 return *this;
762 }
764 private:
765 Aws::String m_platformDetails;
766
767 Aws::String m_usageOperation;
768
769 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
770
771 Aws::String m_description;
772
773 bool m_enaSupport{false};
774
776
777 Aws::String m_imageOwnerAlias;
778
779 Aws::String m_name;
780
781 Aws::String m_rootDeviceName;
782
783 DeviceType m_rootDeviceType{DeviceType::NOT_SET};
784
785 Aws::String m_sriovNetSupport;
786
787 StateReason m_stateReason;
788
789 Aws::Vector<Tag> m_tags;
790
792
794
796
797 Aws::String m_deprecationTime;
798
800
801 Aws::String m_sourceInstanceId;
802
803 Aws::String m_deregistrationProtection;
804
805 Aws::String m_lastLaunchedTime;
806
807 bool m_imageAllowed{false};
808
809 Aws::String m_sourceImageId;
810
811 Aws::String m_sourceImageRegion;
812
813 bool m_freeTierEligible{false};
814
815 Aws::String m_imageId;
816
817 Aws::String m_imageLocation;
818
820
821 Aws::String m_ownerId;
822
823 Aws::String m_creationDate;
824
825 bool m_public{false};
826
827 Aws::Vector<ProductCode> m_productCodes;
828
830
832
833 Aws::String m_kernelId;
834
835 Aws::String m_ramdiskId;
836
838 bool m_platformDetailsHasBeenSet = false;
839 bool m_usageOperationHasBeenSet = false;
840 bool m_blockDeviceMappingsHasBeenSet = false;
841 bool m_descriptionHasBeenSet = false;
842 bool m_enaSupportHasBeenSet = false;
843 bool m_hypervisorHasBeenSet = false;
844 bool m_imageOwnerAliasHasBeenSet = false;
845 bool m_nameHasBeenSet = false;
846 bool m_rootDeviceNameHasBeenSet = false;
847 bool m_rootDeviceTypeHasBeenSet = false;
848 bool m_sriovNetSupportHasBeenSet = false;
849 bool m_stateReasonHasBeenSet = false;
850 bool m_tagsHasBeenSet = false;
851 bool m_virtualizationTypeHasBeenSet = false;
852 bool m_bootModeHasBeenSet = false;
853 bool m_tpmSupportHasBeenSet = false;
854 bool m_deprecationTimeHasBeenSet = false;
855 bool m_imdsSupportHasBeenSet = false;
856 bool m_sourceInstanceIdHasBeenSet = false;
857 bool m_deregistrationProtectionHasBeenSet = false;
858 bool m_lastLaunchedTimeHasBeenSet = false;
859 bool m_imageAllowedHasBeenSet = false;
860 bool m_sourceImageIdHasBeenSet = false;
861 bool m_sourceImageRegionHasBeenSet = false;
862 bool m_freeTierEligibleHasBeenSet = false;
863 bool m_imageIdHasBeenSet = false;
864 bool m_imageLocationHasBeenSet = false;
865 bool m_stateHasBeenSet = false;
866 bool m_ownerIdHasBeenSet = false;
867 bool m_creationDateHasBeenSet = false;
868 bool m_publicHasBeenSet = false;
869 bool m_productCodesHasBeenSet = false;
870 bool m_architectureHasBeenSet = false;
871 bool m_imageTypeHasBeenSet = false;
872 bool m_kernelIdHasBeenSet = false;
873 bool m_ramdiskIdHasBeenSet = false;
874 bool m_platformHasBeenSet = false;
875};
876
877} // namespace Model
878} // namespace EC2
879} // namespace Aws
bool PlatformHasBeenSet() const
Definition Image.h:754
bool DeprecationTimeHasBeenSet() const
Definition Image.h:371
Image & WithTpmSupport(TpmSupportValues value)
Definition Image.h:358
Image & WithImageAllowed(bool value)
Definition Image.h:486
const Aws::String & GetDeprecationTime() const
Definition Image.h:370
BootModeValues GetBootMode() const
Definition Image.h:333
ArchitectureValues GetArchitecture() const
Definition Image.h:682
bool StateHasBeenSet() const
Definition Image.h:589
bool TpmSupportHasBeenSet() const
Definition Image.h:353
bool HypervisorHasBeenSet() const
Definition Image.h:165
void SetSourceImageId(SourceImageIdT &&value)
Definition Image.h:499
Image & AddTags(TagsT &&value)
Definition Image.h:303
void SetState(ImageState value)
Definition Image.h:590
Image & WithDescription(DescriptionT &&value)
Definition Image.h:137
bool RamdiskIdHasBeenSet() const
Definition Image.h:735
Image & WithImageType(ImageTypeValues value)
Definition Image.h:704
void SetTags(TagsT &&value)
Definition Image.h:293
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetImageLocation() const
Definition Image.h:569
void SetImageLocation(ImageLocationT &&value)
Definition Image.h:572
void SetDeregistrationProtection(DeregistrationProtectionT &&value)
Definition Image.h:435
bool EnaSupportHasBeenSet() const
Definition Image.h:148
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
Definition Image.h:108
void SetRootDeviceType(DeviceType value)
Definition Image.h:239
bool ImageTypeHasBeenSet() const
Definition Image.h:699
void SetRamdiskId(RamdiskIdT &&value)
Definition Image.h:737
const Aws::String & GetOwnerId() const
Definition Image.h:604
const Aws::String & GetImageId() const
Definition Image.h:551
Image & WithSourceInstanceId(SourceInstanceIdT &&value)
Definition Image.h:422
Image & WithDeprecationTime(DeprecationTimeT &&value)
Definition Image.h:378
bool ImageLocationHasBeenSet() const
Definition Image.h:570
void SetOwnerId(OwnerIdT &&value)
Definition Image.h:607
Image & WithPlatform(PlatformValues value)
Definition Image.h:759
bool RootDeviceNameHasBeenSet() const
Definition Image.h:219
PlatformValues GetPlatform() const
Definition Image.h:753
bool NameHasBeenSet() const
Definition Image.h:200
Image & WithLastLaunchedTime(LastLaunchedTimeT &&value)
Definition Image.h:462
const Aws::String & GetRootDeviceName() const
Definition Image.h:218
void SetSourceImageRegion(SourceImageRegionT &&value)
Definition Image.h:517
bool TagsHasBeenSet() const
Definition Image.h:291
bool DeregistrationProtectionHasBeenSet() const
Definition Image.h:433
const Aws::String & GetPlatformDetails() const
Definition Image.h:58
bool OwnerIdHasBeenSet() const
Definition Image.h:605
void SetHypervisor(HypervisorType value)
Definition Image.h:166
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Image & WithImageLocation(ImageLocationT &&value)
Definition Image.h:577
void SetImageAllowed(bool value)
Definition Image.h:482
void SetName(NameT &&value)
Definition Image.h:202
const Aws::String & GetKernelId() const
Definition Image.h:715
Image & WithRamdiskId(RamdiskIdT &&value)
Definition Image.h:742
const Aws::String & GetCreationDate() const
Definition Image.h:622
bool KernelIdHasBeenSet() const
Definition Image.h:716
bool GetFreeTierEligible() const
Definition Image.h:535
void SetCreationDate(CreationDateT &&value)
Definition Image.h:625
Image & WithArchitecture(ArchitectureValues value)
Definition Image.h:688
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition Image.h:658
DeviceType GetRootDeviceType() const
Definition Image.h:237
Image & WithProductCodes(ProductCodesT &&value)
Definition Image.h:666
const Aws::String & GetImageOwnerAlias() const
Definition Image.h:181
bool ImageOwnerAliasHasBeenSet() const
Definition Image.h:182
Image & WithBootMode(BootModeValues value)
Definition Image.h:339
bool GetPublic() const
Definition Image.h:642
Image & WithPublic(bool value)
Definition Image.h:648
Image & WithOwnerId(OwnerIdT &&value)
Definition Image.h:612
void SetEnaSupport(bool value)
Definition Image.h:149
void SetPublic(bool value)
Definition Image.h:644
const Aws::String & GetName() const
Definition Image.h:199
void SetPlatformDetails(PlatformDetailsT &&value)
Definition Image.h:61
Image & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
Definition Image.h:118
Image & WithDeregistrationProtection(DeregistrationProtectionT &&value)
Definition Image.h:440
Image & WithImageOwnerAlias(ImageOwnerAliasT &&value)
Definition Image.h:189
Image & WithState(ImageState value)
Definition Image.h:594
Image & WithPlatformDetails(PlatformDetailsT &&value)
Definition Image.h:66
const Aws::Vector< Tag > & GetTags() const
Definition Image.h:290
void SetImageId(ImageIdT &&value)
Definition Image.h:554
bool UsageOperationHasBeenSet() const
Definition Image.h:88
bool SourceImageRegionHasBeenSet() const
Definition Image.h:515
bool ArchitectureHasBeenSet() const
Definition Image.h:683
bool GetEnaSupport() const
Definition Image.h:147
const Aws::String & GetDescription() const
Definition Image.h:129
bool ImageAllowedHasBeenSet() const
Definition Image.h:481
void SetPlatform(PlatformValues value)
Definition Image.h:755
Image & WithUsageOperation(UsageOperationT &&value)
Definition Image.h:95
const StateReason & GetStateReason() const
Definition Image.h:272
void SetStateReason(StateReasonT &&value)
Definition Image.h:275
bool PublicHasBeenSet() const
Definition Image.h:643
TpmSupportValues GetTpmSupport() const
Definition Image.h:352
void SetTpmSupport(TpmSupportValues value)
Definition Image.h:354
void SetProductCodes(ProductCodesT &&value)
Definition Image.h:661
AWS_EC2_API Image(const Aws::Utils::Xml::XmlNode &xmlNode)
bool BootModeHasBeenSet() const
Definition Image.h:334
Image & WithTags(TagsT &&value)
Definition Image.h:298
void SetRootDeviceName(RootDeviceNameT &&value)
Definition Image.h:221
void SetImageType(ImageTypeValues value)
Definition Image.h:700
bool GetImageAllowed() const
Definition Image.h:480
bool SourceImageIdHasBeenSet() const
Definition Image.h:497
Image & WithImdsSupport(ImdsSupportValues value)
Definition Image.h:401
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
Definition Image.h:105
void SetImageOwnerAlias(ImageOwnerAliasT &&value)
Definition Image.h:184
void SetArchitecture(ArchitectureValues value)
Definition Image.h:684
bool LastLaunchedTimeHasBeenSet() const
Definition Image.h:455
bool FreeTierEligibleHasBeenSet() const
Definition Image.h:536
bool PlatformDetailsHasBeenSet() const
Definition Image.h:59
ImdsSupportValues GetImdsSupport() const
Definition Image.h:395
HypervisorType GetHypervisor() const
Definition Image.h:164
Image & WithEnaSupport(bool value)
Definition Image.h:153
ImageTypeValues GetImageType() const
Definition Image.h:698
void SetBootMode(BootModeValues value)
Definition Image.h:335
Image & WithName(NameT &&value)
Definition Image.h:207
bool SriovNetSupportHasBeenSet() const
Definition Image.h:255
const Aws::String & GetDeregistrationProtection() const
Definition Image.h:432
void SetImdsSupport(ImdsSupportValues value)
Definition Image.h:397
Image & WithFreeTierEligible(bool value)
Definition Image.h:541
bool DescriptionHasBeenSet() const
Definition Image.h:130
AWS_EC2_API Image()=default
Image & WithSriovNetSupport(SriovNetSupportT &&value)
Definition Image.h:262
const Aws::String & GetSriovNetSupport() const
Definition Image.h:254
Image & WithSourceImageRegion(SourceImageRegionT &&value)
Definition Image.h:522
bool SourceInstanceIdHasBeenSet() const
Definition Image.h:415
void SetVirtualizationType(VirtualizationType value)
Definition Image.h:316
Image & WithRootDeviceType(DeviceType value)
Definition Image.h:243
const Aws::String & GetSourceImageRegion() const
Definition Image.h:514
Image & WithRootDeviceName(RootDeviceNameT &&value)
Definition Image.h:226
const Aws::String & GetSourceImageId() const
Definition Image.h:496
const Aws::String & GetLastLaunchedTime() const
Definition Image.h:454
bool VirtualizationTypeHasBeenSet() const
Definition Image.h:315
void SetSourceInstanceId(SourceInstanceIdT &&value)
Definition Image.h:417
bool BlockDeviceMappingsHasBeenSet() const
Definition Image.h:106
Image & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
Definition Image.h:113
bool ImdsSupportHasBeenSet() const
Definition Image.h:396
VirtualizationType GetVirtualizationType() const
Definition Image.h:314
Image & WithHypervisor(HypervisorType value)
Definition Image.h:170
void SetFreeTierEligible(bool value)
Definition Image.h:537
Image & WithStateReason(StateReasonT &&value)
Definition Image.h:280
Image & WithImageId(ImageIdT &&value)
Definition Image.h:559
void SetSriovNetSupport(SriovNetSupportT &&value)
Definition Image.h:257
bool CreationDateHasBeenSet() const
Definition Image.h:623
AWS_EC2_API Image & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLastLaunchedTime(LastLaunchedTimeT &&value)
Definition Image.h:457
void SetDeprecationTime(DeprecationTimeT &&value)
Definition Image.h:373
const Aws::String & GetRamdiskId() const
Definition Image.h:734
void SetKernelId(KernelIdT &&value)
Definition Image.h:718
bool StateReasonHasBeenSet() const
Definition Image.h:273
void SetDescription(DescriptionT &&value)
Definition Image.h:132
void SetUsageOperation(UsageOperationT &&value)
Definition Image.h:90
Image & WithKernelId(KernelIdT &&value)
Definition Image.h:723
ImageState GetState() const
Definition Image.h:588
Image & WithCreationDate(CreationDateT &&value)
Definition Image.h:630
Image & AddProductCodes(ProductCodesT &&value)
Definition Image.h:671
Image & WithSourceImageId(SourceImageIdT &&value)
Definition Image.h:504
bool RootDeviceTypeHasBeenSet() const
Definition Image.h:238
const Aws::String & GetSourceInstanceId() const
Definition Image.h:414
bool ImageIdHasBeenSet() const
Definition Image.h:552
Image & WithVirtualizationType(VirtualizationType value)
Definition Image.h:320
const Aws::String & GetUsageOperation() const
Definition Image.h:87
bool ProductCodesHasBeenSet() const
Definition Image.h:659
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