AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
369 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
370 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
371 template<typename SourceImageIdT = Aws::String>
372 void SetSourceImageId(SourceImageIdT&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::forward<SourceImageIdT>(value); }
373 template<typename SourceImageIdT = Aws::String>
374 Image& WithSourceImageId(SourceImageIdT&& value) { SetSourceImageId(std::forward<SourceImageIdT>(value)); return *this;}
376
378
388 inline const Aws::String& GetSourceImageRegion() const { return m_sourceImageRegion; }
389 inline bool SourceImageRegionHasBeenSet() const { return m_sourceImageRegionHasBeenSet; }
390 template<typename SourceImageRegionT = Aws::String>
391 void SetSourceImageRegion(SourceImageRegionT&& value) { m_sourceImageRegionHasBeenSet = true; m_sourceImageRegion = std::forward<SourceImageRegionT>(value); }
392 template<typename SourceImageRegionT = Aws::String>
393 Image& WithSourceImageRegion(SourceImageRegionT&& value) { SetSourceImageRegion(std::forward<SourceImageRegionT>(value)); return *this;}
395
397
403 inline bool GetFreeTierEligible() const { return m_freeTierEligible; }
404 inline bool FreeTierEligibleHasBeenSet() const { return m_freeTierEligibleHasBeenSet; }
405 inline void SetFreeTierEligible(bool value) { m_freeTierEligibleHasBeenSet = true; m_freeTierEligible = value; }
406 inline Image& WithFreeTierEligible(bool value) { SetFreeTierEligible(value); return *this;}
408
410
413 inline const Aws::String& GetImageId() const { return m_imageId; }
414 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
415 template<typename ImageIdT = Aws::String>
416 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
417 template<typename ImageIdT = Aws::String>
418 Image& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
420
422
425 inline const Aws::String& GetImageLocation() const { return m_imageLocation; }
426 inline bool ImageLocationHasBeenSet() const { return m_imageLocationHasBeenSet; }
427 template<typename ImageLocationT = Aws::String>
428 void SetImageLocation(ImageLocationT&& value) { m_imageLocationHasBeenSet = true; m_imageLocation = std::forward<ImageLocationT>(value); }
429 template<typename ImageLocationT = Aws::String>
430 Image& WithImageLocation(ImageLocationT&& value) { SetImageLocation(std::forward<ImageLocationT>(value)); return *this;}
432
434
438 inline ImageState GetState() const { return m_state; }
439 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
440 inline void SetState(ImageState value) { m_stateHasBeenSet = true; m_state = value; }
441 inline Image& WithState(ImageState value) { SetState(value); return *this;}
443
445
448 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
449 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
450 template<typename OwnerIdT = Aws::String>
451 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
452 template<typename OwnerIdT = Aws::String>
453 Image& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
455
457
460 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
461 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
462 template<typename CreationDateT = Aws::String>
463 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
464 template<typename CreationDateT = Aws::String>
465 Image& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
467
469
474 inline bool GetPublic() const { return m_public; }
475 inline bool PublicHasBeenSet() const { return m_publicHasBeenSet; }
476 inline void SetPublic(bool value) { m_publicHasBeenSet = true; m_public = value; }
477 inline Image& WithPublic(bool value) { SetPublic(value); return *this;}
479
481
484 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
485 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
486 template<typename ProductCodesT = Aws::Vector<ProductCode>>
487 void SetProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::forward<ProductCodesT>(value); }
488 template<typename ProductCodesT = Aws::Vector<ProductCode>>
489 Image& WithProductCodes(ProductCodesT&& value) { SetProductCodes(std::forward<ProductCodesT>(value)); return *this;}
490 template<typename ProductCodesT = ProductCode>
491 Image& AddProductCodes(ProductCodesT&& value) { m_productCodesHasBeenSet = true; m_productCodes.emplace_back(std::forward<ProductCodesT>(value)); return *this; }
493
495
498 inline ArchitectureValues GetArchitecture() const { return m_architecture; }
499 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
500 inline void SetArchitecture(ArchitectureValues value) { m_architectureHasBeenSet = true; m_architecture = value; }
501 inline Image& WithArchitecture(ArchitectureValues value) { SetArchitecture(value); return *this;}
503
505
508 inline ImageTypeValues GetImageType() const { return m_imageType; }
509 inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; }
510 inline void SetImageType(ImageTypeValues value) { m_imageTypeHasBeenSet = true; m_imageType = value; }
511 inline Image& WithImageType(ImageTypeValues value) { SetImageType(value); return *this;}
513
515
519 inline const Aws::String& GetKernelId() const { return m_kernelId; }
520 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
521 template<typename KernelIdT = Aws::String>
522 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::forward<KernelIdT>(value); }
523 template<typename KernelIdT = Aws::String>
524 Image& WithKernelId(KernelIdT&& value) { SetKernelId(std::forward<KernelIdT>(value)); return *this;}
526
528
532 inline const Aws::String& GetRamdiskId() const { return m_ramdiskId; }
533 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
534 template<typename RamdiskIdT = Aws::String>
535 void SetRamdiskId(RamdiskIdT&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::forward<RamdiskIdT>(value); }
536 template<typename RamdiskIdT = Aws::String>
537 Image& WithRamdiskId(RamdiskIdT&& value) { SetRamdiskId(std::forward<RamdiskIdT>(value)); return *this;}
539
541
545 inline PlatformValues GetPlatform() const { return m_platform; }
546 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
547 inline void SetPlatform(PlatformValues value) { m_platformHasBeenSet = true; m_platform = value; }
548 inline Image& WithPlatform(PlatformValues value) { SetPlatform(value); return *this;}
550 private:
551
552 Aws::String m_platformDetails;
553 bool m_platformDetailsHasBeenSet = false;
554
555 Aws::String m_usageOperation;
556 bool m_usageOperationHasBeenSet = false;
557
558 Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
559 bool m_blockDeviceMappingsHasBeenSet = false;
560
561 Aws::String m_description;
562 bool m_descriptionHasBeenSet = false;
563
564 bool m_enaSupport{false};
565 bool m_enaSupportHasBeenSet = false;
566
568 bool m_hypervisorHasBeenSet = false;
569
570 Aws::String m_imageOwnerAlias;
571 bool m_imageOwnerAliasHasBeenSet = false;
572
573 Aws::String m_name;
574 bool m_nameHasBeenSet = false;
575
576 Aws::String m_rootDeviceName;
577 bool m_rootDeviceNameHasBeenSet = false;
578
579 DeviceType m_rootDeviceType{DeviceType::NOT_SET};
580 bool m_rootDeviceTypeHasBeenSet = false;
581
582 Aws::String m_sriovNetSupport;
583 bool m_sriovNetSupportHasBeenSet = false;
584
585 StateReason m_stateReason;
586 bool m_stateReasonHasBeenSet = false;
587
588 Aws::Vector<Tag> m_tags;
589 bool m_tagsHasBeenSet = false;
590
592 bool m_virtualizationTypeHasBeenSet = false;
593
595 bool m_bootModeHasBeenSet = false;
596
598 bool m_tpmSupportHasBeenSet = false;
599
600 Aws::String m_deprecationTime;
601 bool m_deprecationTimeHasBeenSet = false;
602
604 bool m_imdsSupportHasBeenSet = false;
605
606 Aws::String m_sourceInstanceId;
607 bool m_sourceInstanceIdHasBeenSet = false;
608
609 Aws::String m_deregistrationProtection;
610 bool m_deregistrationProtectionHasBeenSet = false;
611
612 Aws::String m_lastLaunchedTime;
613 bool m_lastLaunchedTimeHasBeenSet = false;
614
615 bool m_imageAllowed{false};
616 bool m_imageAllowedHasBeenSet = false;
617
618 Aws::String m_sourceImageId;
619 bool m_sourceImageIdHasBeenSet = false;
620
621 Aws::String m_sourceImageRegion;
622 bool m_sourceImageRegionHasBeenSet = false;
623
624 bool m_freeTierEligible{false};
625 bool m_freeTierEligibleHasBeenSet = false;
626
627 Aws::String m_imageId;
628 bool m_imageIdHasBeenSet = false;
629
630 Aws::String m_imageLocation;
631 bool m_imageLocationHasBeenSet = false;
632
634 bool m_stateHasBeenSet = false;
635
636 Aws::String m_ownerId;
637 bool m_ownerIdHasBeenSet = false;
638
639 Aws::String m_creationDate;
640 bool m_creationDateHasBeenSet = false;
641
642 bool m_public{false};
643 bool m_publicHasBeenSet = false;
644
645 Aws::Vector<ProductCode> m_productCodes;
646 bool m_productCodesHasBeenSet = false;
647
649 bool m_architectureHasBeenSet = false;
650
652 bool m_imageTypeHasBeenSet = false;
653
654 Aws::String m_kernelId;
655 bool m_kernelIdHasBeenSet = false;
656
657 Aws::String m_ramdiskId;
658 bool m_ramdiskIdHasBeenSet = false;
659
661 bool m_platformHasBeenSet = false;
662 };
663
664} // namespace Model
665} // namespace EC2
666} // namespace Aws
bool PlatformHasBeenSet() const
Definition Image.h:546
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:498
bool StateHasBeenSet() const
Definition Image.h:439
bool TpmSupportHasBeenSet() const
Definition Image.h:261
bool HypervisorHasBeenSet() const
Definition Image.h:137
void SetSourceImageId(SourceImageIdT &&value)
Definition Image.h:372
Image & AddTags(TagsT &&value)
Definition Image.h:227
void SetState(ImageState value)
Definition Image.h:440
Image & WithDescription(DescriptionT &&value)
Definition Image.h:118
bool RamdiskIdHasBeenSet() const
Definition Image.h:533
Image & WithImageType(ImageTypeValues value)
Definition Image.h:511
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:425
void SetImageLocation(ImageLocationT &&value)
Definition Image.h:428
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:509
void SetRamdiskId(RamdiskIdT &&value)
Definition Image.h:535
const Aws::String & GetOwnerId() const
Definition Image.h:448
const Aws::String & GetImageId() const
Definition Image.h:413
Image & WithSourceInstanceId(SourceInstanceIdT &&value)
Definition Image.h:309
Image & WithDeprecationTime(DeprecationTimeT &&value)
Definition Image.h:277
bool ImageLocationHasBeenSet() const
Definition Image.h:426
void SetOwnerId(OwnerIdT &&value)
Definition Image.h:451
Image & WithPlatform(PlatformValues value)
Definition Image.h:548
bool RootDeviceNameHasBeenSet() const
Definition Image.h:173
PlatformValues GetPlatform() const
Definition Image.h:545
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:391
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:449
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:430
void SetImageAllowed(bool value)
Definition Image.h:354
void SetName(NameT &&value)
Definition Image.h:162
const Aws::String & GetKernelId() const
Definition Image.h:519
Image & WithRamdiskId(RamdiskIdT &&value)
Definition Image.h:537
const Aws::String & GetCreationDate() const
Definition Image.h:460
bool KernelIdHasBeenSet() const
Definition Image.h:520
bool GetFreeTierEligible() const
Definition Image.h:403
void SetCreationDate(CreationDateT &&value)
Definition Image.h:463
Image & WithArchitecture(ArchitectureValues value)
Definition Image.h:501
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition Image.h:484
DeviceType GetRootDeviceType() const
Definition Image.h:185
Image & WithProductCodes(ProductCodesT &&value)
Definition Image.h:489
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:474
Image & WithPublic(bool value)
Definition Image.h:477
Image & WithOwnerId(OwnerIdT &&value)
Definition Image.h:453
void SetEnaSupport(bool value)
Definition Image.h:127
void SetPublic(bool value)
Definition Image.h:476
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:441
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:416
bool UsageOperationHasBeenSet() const
Definition Image.h:88
bool SourceImageRegionHasBeenSet() const
Definition Image.h:389
bool ArchitectureHasBeenSet() const
Definition Image.h:499
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:547
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:475
TpmSupportValues GetTpmSupport() const
Definition Image.h:260
void SetTpmSupport(TpmSupportValues value)
Definition Image.h:262
void SetProductCodes(ProductCodesT &&value)
Definition Image.h:487
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:510
bool GetImageAllowed() const
Definition Image.h:352
bool SourceImageIdHasBeenSet() const
Definition Image.h:370
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:500
bool LastLaunchedTimeHasBeenSet() const
Definition Image.h:333
bool FreeTierEligibleHasBeenSet() const
Definition Image.h:404
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:508
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:406
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:393
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:388
Image & WithRootDeviceName(RootDeviceNameT &&value)
Definition Image.h:177
const Aws::String & GetSourceImageId() const
Definition Image.h:369
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:405
Image & WithStateReason(StateReasonT &&value)
Definition Image.h:213
Image & WithImageId(ImageIdT &&value)
Definition Image.h:418
void SetSriovNetSupport(SriovNetSupportT &&value)
Definition Image.h:199
bool CreationDateHasBeenSet() const
Definition Image.h:461
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:532
void SetKernelId(KernelIdT &&value)
Definition Image.h:522
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:524
ImageState GetState() const
Definition Image.h:438
Image & WithCreationDate(CreationDateT &&value)
Definition Image.h:465
Image & AddProductCodes(ProductCodesT &&value)
Definition Image.h:491
Image & WithSourceImageId(SourceImageIdT &&value)
Definition Image.h:374
bool RootDeviceTypeHasBeenSet() const
Definition Image.h:186
const Aws::String & GetSourceInstanceId() const
Definition Image.h:304
bool ImageIdHasBeenSet() const
Definition Image.h:414
Image & WithVirtualizationType(VirtualizationType value)
Definition Image.h:237
const Aws::String & GetUsageOperation() const
Definition Image.h:87
bool ProductCodesHasBeenSet() const
Definition Image.h:485
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