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>
68 inline void SetPlatformDetails(
const char* value) { m_platformDetailsHasBeenSet =
true; m_platformDetails.assign(value); }
93 inline void SetUsageOperation(
const char* value) { m_usageOperationHasBeenSet =
true; m_usageOperation.assign(value); }
121 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
133 inline void SetEnaSupport(
bool value) { m_enaSupportHasBeenSet =
true; m_enaSupport = value; }
158 inline void SetImageOwnerAlias(
const char* value) { m_imageOwnerAliasHasBeenSet =
true; m_imageOwnerAlias.assign(value); }
172 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
187 inline void SetRootDeviceName(
const char* value) { m_rootDeviceNameHasBeenSet =
true; m_rootDeviceName.assign(value); }
215 inline void SetSriovNetSupport(
const char* value) { m_sriovNetSupportHasBeenSet =
true; m_sriovNetSupport.assign(value); }
243 inline Image&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
244 inline Image&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
298 inline void SetDeprecationTime(
const char* value) { m_deprecationTimeHasBeenSet =
true; m_deprecationTime.assign(value); }
334 inline void SetSourceInstanceId(
const char* value) { m_sourceInstanceIdHasBeenSet =
true; m_sourceInstanceId.assign(value); }
348 inline void SetDeregistrationProtection(
const char* value) { m_deregistrationProtectionHasBeenSet =
true; m_deregistrationProtection.assign(value); }
366 inline void SetLastLaunchedTime(
const char* value) { m_lastLaunchedTimeHasBeenSet =
true; m_lastLaunchedTime.assign(value); }
380 inline void SetImageId(
const char* value) { m_imageIdHasBeenSet =
true; m_imageId.assign(value); }
394 inline void SetImageLocation(
const char* value) { m_imageLocationHasBeenSet =
true; m_imageLocation.assign(value); }
421 inline void SetOwnerId(
const char* value) { m_ownerIdHasBeenSet =
true; m_ownerId.assign(value); }
435 inline void SetCreationDate(
const char* value) { m_creationDateHasBeenSet =
true; m_creationDate.assign(value); }
449 inline void SetPublic(
bool value) { m_publicHasBeenSet =
true; m_public = value; }
500 inline void SetKernelId(
const char* value) { m_kernelIdHasBeenSet =
true; m_kernelId.assign(value); }
515 inline void SetRamdiskId(
const char* value) { m_ramdiskIdHasBeenSet =
true; m_ramdiskId.assign(value); }
536 bool m_platformDetailsHasBeenSet =
false;
539 bool m_usageOperationHasBeenSet =
false;
542 bool m_blockDeviceMappingsHasBeenSet =
false;
545 bool m_descriptionHasBeenSet =
false;
548 bool m_enaSupportHasBeenSet =
false;
551 bool m_hypervisorHasBeenSet =
false;
554 bool m_imageOwnerAliasHasBeenSet =
false;
557 bool m_nameHasBeenSet =
false;
560 bool m_rootDeviceNameHasBeenSet =
false;
563 bool m_rootDeviceTypeHasBeenSet =
false;
566 bool m_sriovNetSupportHasBeenSet =
false;
569 bool m_stateReasonHasBeenSet =
false;
572 bool m_tagsHasBeenSet =
false;
575 bool m_virtualizationTypeHasBeenSet =
false;
578 bool m_bootModeHasBeenSet =
false;
581 bool m_tpmSupportHasBeenSet =
false;
584 bool m_deprecationTimeHasBeenSet =
false;
587 bool m_imdsSupportHasBeenSet =
false;
590 bool m_sourceInstanceIdHasBeenSet =
false;
593 bool m_deregistrationProtectionHasBeenSet =
false;
596 bool m_lastLaunchedTimeHasBeenSet =
false;
599 bool m_imageIdHasBeenSet =
false;
602 bool m_imageLocationHasBeenSet =
false;
605 bool m_stateHasBeenSet =
false;
608 bool m_ownerIdHasBeenSet =
false;
611 bool m_creationDateHasBeenSet =
false;
614 bool m_publicHasBeenSet =
false;
617 bool m_productCodesHasBeenSet =
false;
620 bool m_architectureHasBeenSet =
false;
623 bool m_imageTypeHasBeenSet =
false;
626 bool m_kernelIdHasBeenSet =
false;
629 bool m_ramdiskIdHasBeenSet =
false;
632 bool m_platformHasBeenSet =
false;
Image & WithRamdiskId(const Aws::String &value)
bool PlatformHasBeenSet() const
void SetImageId(Aws::String &&value)
bool DeprecationTimeHasBeenSet() const
void SetTpmSupport(TpmSupportValues &&value)
void SetState(const ImageState &value)
const Aws::String & GetDeprecationTime() const
Image & WithCreationDate(const Aws::String &value)
Image & WithPlatformDetails(const Aws::String &value)
void SetRootDeviceType(DeviceType &&value)
void SetTpmSupport(const TpmSupportValues &value)
Image & WithSriovNetSupport(Aws::String &&value)
Image & AddBlockDeviceMappings(const BlockDeviceMapping &value)
void SetCreationDate(const char *value)
const TpmSupportValues & GetTpmSupport() const
Image & WithImageType(ImageTypeValues &&value)
void SetRootDeviceName(Aws::String &&value)
const ImageTypeValues & GetImageType() const
Image & WithTpmSupport(TpmSupportValues &&value)
Image & WithHypervisor(HypervisorType &&value)
void SetLastLaunchedTime(Aws::String &&value)
bool StateHasBeenSet() const
Image & AddTags(const Tag &value)
bool TpmSupportHasBeenSet() const
void SetStateReason(const StateReason &value)
bool HypervisorHasBeenSet() const
void SetVirtualizationType(const VirtualizationType &value)
void SetUsageOperation(const Aws::String &value)
bool RamdiskIdHasBeenSet() const
void SetRamdiskId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetImageLocation() const
Image & WithSourceInstanceId(const Aws::String &value)
Image & WithDeregistrationProtection(Aws::String &&value)
bool EnaSupportHasBeenSet() const
bool ImageTypeHasBeenSet() const
Image & AddTags(Tag &&value)
const Aws::String & GetOwnerId() const
const Aws::String & GetImageId() const
Image & WithImdsSupport(const ImdsSupportValues &value)
void SetPlatformDetails(const char *value)
void SetDescription(const char *value)
void SetName(Aws::String &&value)
bool ImageLocationHasBeenSet() const
void SetProductCodes(const Aws::Vector< ProductCode > &value)
const ImdsSupportValues & GetImdsSupport() const
void SetRootDeviceName(const char *value)
Image & WithLastLaunchedTime(const Aws::String &value)
void SetImdsSupport(ImdsSupportValues &&value)
Image & WithDescription(Aws::String &&value)
bool RootDeviceNameHasBeenSet() const
bool NameHasBeenSet() const
void SetState(ImageState &&value)
void SetSourceInstanceId(Aws::String &&value)
void SetImageOwnerAlias(const char *value)
const Aws::String & GetRootDeviceName() const
void SetHypervisor(const HypervisorType &value)
Image & WithStateReason(StateReason &&value)
void SetImageLocation(const Aws::String &value)
Image & WithImageLocation(const Aws::String &value)
void SetRootDeviceName(const Aws::String &value)
Image & WithUsageOperation(const char *value)
void SetImageType(const ImageTypeValues &value)
Image & WithDescription(const char *value)
bool TagsHasBeenSet() const
bool DeregistrationProtectionHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
void SetBootMode(BootModeValues &&value)
void SetName(const Aws::String &value)
const Aws::String & GetPlatformDetails() const
void SetBootMode(const BootModeValues &value)
bool OwnerIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Image & WithPlatform(PlatformValues &&value)
Image & WithHypervisor(const HypervisorType &value)
void SetDeregistrationProtection(Aws::String &&value)
void SetDeregistrationProtection(const char *value)
Image & WithImageOwnerAlias(const char *value)
Image & WithUsageOperation(Aws::String &&value)
Image & WithDeprecationTime(Aws::String &&value)
const Aws::String & GetKernelId() const
Image & WithUsageOperation(const Aws::String &value)
const Aws::String & GetCreationDate() const
Image & WithArchitecture(const ArchitectureValues &value)
void SetDescription(Aws::String &&value)
Image & WithDeregistrationProtection(const char *value)
bool KernelIdHasBeenSet() const
void SetArchitecture(const ArchitectureValues &value)
const Aws::Vector< ProductCode > & GetProductCodes() const
Image & WithImageOwnerAlias(Aws::String &&value)
void SetDeprecationTime(Aws::String &&value)
const Aws::String & GetImageOwnerAlias() const
Image & WithBootMode(BootModeValues &&value)
bool ImageOwnerAliasHasBeenSet() const
Image & WithImageType(const ImageTypeValues &value)
void SetName(const char *value)
Image & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
const ArchitectureValues & GetArchitecture() const
Image & WithStateReason(const StateReason &value)
const PlatformValues & GetPlatform() const
void SetImageId(const Aws::String &value)
Image & WithImageOwnerAlias(const Aws::String &value)
Image & WithRootDeviceType(const DeviceType &value)
Image & WithPublic(bool value)
void SetEnaSupport(bool value)
void SetPublic(bool value)
const Aws::String & GetName() const
void SetRamdiskId(const char *value)
Image & WithTpmSupport(const TpmSupportValues &value)
Image & WithOwnerId(Aws::String &&value)
void SetSriovNetSupport(Aws::String &&value)
void SetImageOwnerAlias(Aws::String &&value)
void SetDeprecationTime(const char *value)
void SetKernelId(const Aws::String &value)
void SetArchitecture(ArchitectureValues &&value)
void SetImageLocation(const char *value)
Image & WithSriovNetSupport(const Aws::String &value)
Image & WithOwnerId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
bool UsageOperationHasBeenSet() const
bool ArchitectureHasBeenSet() const
bool GetEnaSupport() const
void SetPlatformDetails(const Aws::String &value)
const BootModeValues & GetBootMode() const
const Aws::String & GetDescription() const
void SetLastLaunchedTime(const char *value)
Image & WithRootDeviceName(const Aws::String &value)
const StateReason & GetStateReason() const
bool PublicHasBeenSet() const
AWS_EC2_API Image(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetImageOwnerAlias(const Aws::String &value)
bool BootModeHasBeenSet() const
void SetOwnerId(const Aws::String &value)
void SetHypervisor(HypervisorType &&value)
Image & WithCreationDate(const char *value)
Image & WithRamdiskId(Aws::String &&value)
Image & WithSourceInstanceId(Aws::String &&value)
void SetProductCodes(Aws::Vector< ProductCode > &&value)
void SetStateReason(StateReason &&value)
Image & WithName(const Aws::String &value)
Image & WithRootDeviceName(const char *value)
void SetUsageOperation(const char *value)
Image & WithImageId(const char *value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
bool LastLaunchedTimeHasBeenSet() const
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
Image & WithDeprecationTime(const char *value)
Image & WithVirtualizationType(const VirtualizationType &value)
Image & AddProductCodes(const ProductCode &value)
bool PlatformDetailsHasBeenSet() const
Image & WithVirtualizationType(VirtualizationType &&value)
Image & WithKernelId(Aws::String &&value)
Image & WithKernelId(const Aws::String &value)
Image & WithPlatformDetails(const char *value)
Image & WithEnaSupport(bool value)
Image & WithImageId(const Aws::String &value)
Image & WithArchitecture(ArchitectureValues &&value)
Image & WithPlatform(const PlatformValues &value)
bool SriovNetSupportHasBeenSet() const
void SetOwnerId(const char *value)
Image & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetDeregistrationProtection() const
Image & WithState(ImageState &&value)
void SetRootDeviceType(const DeviceType &value)
bool DescriptionHasBeenSet() const
void SetTags(Aws::Vector< Tag > &&value)
Image & WithBootMode(const BootModeValues &value)
void SetImageLocation(Aws::String &&value)
void SetCreationDate(Aws::String &&value)
void SetLastLaunchedTime(const Aws::String &value)
Image & WithOwnerId(const char *value)
const Aws::String & GetSriovNetSupport() const
Image & WithSriovNetSupport(const char *value)
Image & WithKernelId(const char *value)
bool SourceInstanceIdHasBeenSet() const
Image & WithImdsSupport(ImdsSupportValues &&value)
const HypervisorType & GetHypervisor() const
void SetPlatformDetails(Aws::String &&value)
void SetImageId(const char *value)
void SetCreationDate(const Aws::String &value)
Image & WithCreationDate(Aws::String &&value)
void SetImageType(ImageTypeValues &&value)
void SetDeprecationTime(const Aws::String &value)
void SetDeregistrationProtection(const Aws::String &value)
const Aws::String & GetLastLaunchedTime() const
bool VirtualizationTypeHasBeenSet() const
bool BlockDeviceMappingsHasBeenSet() const
Image & WithState(const ImageState &value)
const DeviceType & GetRootDeviceType() const
Image & AddBlockDeviceMappings(BlockDeviceMapping &&value)
void SetKernelId(Aws::String &&value)
void SetPlatform(const PlatformValues &value)
void SetSourceInstanceId(const Aws::String &value)
bool ImdsSupportHasBeenSet() const
Image & WithProductCodes(const Aws::Vector< ProductCode > &value)
const VirtualizationType & GetVirtualizationType() const
void SetSriovNetSupport(const Aws::String &value)
Image & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
bool CreationDateHasBeenSet() const
void SetSriovNetSupport(const char *value)
AWS_EC2_API Image & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVirtualizationType(VirtualizationType &&value)
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
Image & WithDeregistrationProtection(const Aws::String &value)
void SetKernelId(const char *value)
Image & WithPlatformDetails(Aws::String &&value)
Image & WithRamdiskId(const char *value)
Image & WithImageLocation(const char *value)
Image & WithRootDeviceType(DeviceType &&value)
const Aws::String & GetRamdiskId() const
void SetImdsSupport(const ImdsSupportValues &value)
Image & WithProductCodes(Aws::Vector< ProductCode > &&value)
Image & WithLastLaunchedTime(Aws::String &&value)
Image & WithImageLocation(Aws::String &&value)
bool StateReasonHasBeenSet() const
Image & WithLastLaunchedTime(const char *value)
Image & WithName(const char *value)
void SetDescription(const Aws::String &value)
Image & WithRootDeviceName(Aws::String &&value)
const ImageState & GetState() const
void SetPlatform(PlatformValues &&value)
void SetUsageOperation(Aws::String &&value)
Image & WithDescription(const Aws::String &value)
Image & WithImageId(Aws::String &&value)
Image & WithDeprecationTime(const Aws::String &value)
Image & AddProductCodes(ProductCode &&value)
void SetRamdiskId(const Aws::String &value)
bool RootDeviceTypeHasBeenSet() const
const Aws::String & GetSourceInstanceId() const
void SetSourceInstanceId(const char *value)
bool ImageIdHasBeenSet() const
Image & WithName(Aws::String &&value)
Image & WithSourceInstanceId(const char *value)
const Aws::String & GetUsageOperation() const
void SetOwnerId(Aws::String &&value)
Image & WithTags(const Aws::Vector< Tag > &value)
bool ProductCodesHasBeenSet() const
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