/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An image build version.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the image.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the image.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the image.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the image.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the image.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the image.
*/ inline Image& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the image.
*/ inline Image& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the image.
*/ inline Image& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the image.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the image.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the image.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the image.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the image.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the image.
*/ inline Image& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the image.
*/ inline Image& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the image.
*/ inline Image& WithName(const char* value) { SetName(value); return *this;} /** *The semantic version of the image.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The semantic version of the image.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The semantic version of the image.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The semantic version of the image.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The semantic version of the image.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The semantic version of the image.
*/ inline Image& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The semantic version of the image.
*/ inline Image& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The semantic version of the image.
*/ inline Image& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The platform of the image.
*/ inline const Platform& GetPlatform() const{ return m_platform; } /** *The platform of the image.
*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *The platform of the image.
*/ inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *The platform of the image.
*/ inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *The platform of the image.
*/ inline Image& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *The platform of the image.
*/ inline Image& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;} /** *Collects additional information about the image being created, including the * operating system (OS) version and package list. This information is used to * enhance the overall experience of using EC2 Image Builder. Enabled by default. *
*/ inline bool GetEnhancedImageMetadataEnabled() const{ return m_enhancedImageMetadataEnabled; } /** *Collects additional information about the image being created, including the * operating system (OS) version and package list. This information is used to * enhance the overall experience of using EC2 Image Builder. Enabled by default. *
*/ inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; } /** *Collects additional information about the image being created, including the * operating system (OS) version and package list. This information is used to * enhance the overall experience of using EC2 Image Builder. Enabled by default. *
*/ inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; } /** *Collects additional information about the image being created, including the * operating system (OS) version and package list. This information is used to * enhance the overall experience of using EC2 Image Builder. Enabled by default. *
*/ inline Image& WithEnhancedImageMetadataEnabled(bool value) { SetEnhancedImageMetadataEnabled(value); return *this;} /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline const Aws::String& GetOsVersion() const{ return m_osVersion; } /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; } /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; } /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); } /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); } /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline Image& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;} /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline Image& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;} /** *The operating system version of the instance. For example, Amazon Linux 2, * Ubuntu 18, or Microsoft Windows Server 2019.
*/ inline Image& WithOsVersion(const char* value) { SetOsVersion(value); return *this;} /** *The state of the image.
*/ inline const ImageState& GetState() const{ return m_state; } /** *The state of the image.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the image.
*/ inline void SetState(const ImageState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the image.
*/ inline void SetState(ImageState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the image.
*/ inline Image& WithState(const ImageState& value) { SetState(value); return *this;} /** *The state of the image.
*/ inline Image& WithState(ImageState&& value) { SetState(std::move(value)); return *this;} /** *The image recipe used when creating the image.
*/ inline const ImageRecipe& GetImageRecipe() const{ return m_imageRecipe; } /** *The image recipe used when creating the image.
*/ inline bool ImageRecipeHasBeenSet() const { return m_imageRecipeHasBeenSet; } /** *The image recipe used when creating the image.
*/ inline void SetImageRecipe(const ImageRecipe& value) { m_imageRecipeHasBeenSet = true; m_imageRecipe = value; } /** *The image recipe used when creating the image.
*/ inline void SetImageRecipe(ImageRecipe&& value) { m_imageRecipeHasBeenSet = true; m_imageRecipe = std::move(value); } /** *The image recipe used when creating the image.
*/ inline Image& WithImageRecipe(const ImageRecipe& value) { SetImageRecipe(value); return *this;} /** *The image recipe used when creating the image.
*/ inline Image& WithImageRecipe(ImageRecipe&& value) { SetImageRecipe(std::move(value)); return *this;} /** *The name of the image pipeline that created this image.
*/ inline const Aws::String& GetSourcePipelineName() const{ return m_sourcePipelineName; } /** *The name of the image pipeline that created this image.
*/ inline bool SourcePipelineNameHasBeenSet() const { return m_sourcePipelineNameHasBeenSet; } /** *The name of the image pipeline that created this image.
*/ inline void SetSourcePipelineName(const Aws::String& value) { m_sourcePipelineNameHasBeenSet = true; m_sourcePipelineName = value; } /** *The name of the image pipeline that created this image.
*/ inline void SetSourcePipelineName(Aws::String&& value) { m_sourcePipelineNameHasBeenSet = true; m_sourcePipelineName = std::move(value); } /** *The name of the image pipeline that created this image.
*/ inline void SetSourcePipelineName(const char* value) { m_sourcePipelineNameHasBeenSet = true; m_sourcePipelineName.assign(value); } /** *The name of the image pipeline that created this image.
*/ inline Image& WithSourcePipelineName(const Aws::String& value) { SetSourcePipelineName(value); return *this;} /** *The name of the image pipeline that created this image.
*/ inline Image& WithSourcePipelineName(Aws::String&& value) { SetSourcePipelineName(std::move(value)); return *this;} /** *The name of the image pipeline that created this image.
*/ inline Image& WithSourcePipelineName(const char* value) { SetSourcePipelineName(value); return *this;} /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline const Aws::String& GetSourcePipelineArn() const{ return m_sourcePipelineArn; } /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline bool SourcePipelineArnHasBeenSet() const { return m_sourcePipelineArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline void SetSourcePipelineArn(const Aws::String& value) { m_sourcePipelineArnHasBeenSet = true; m_sourcePipelineArn = value; } /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline void SetSourcePipelineArn(Aws::String&& value) { m_sourcePipelineArnHasBeenSet = true; m_sourcePipelineArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline void SetSourcePipelineArn(const char* value) { m_sourcePipelineArnHasBeenSet = true; m_sourcePipelineArn.assign(value); } /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline Image& WithSourcePipelineArn(const Aws::String& value) { SetSourcePipelineArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline Image& WithSourcePipelineArn(Aws::String&& value) { SetSourcePipelineArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the image pipeline that created this * image.
*/ inline Image& WithSourcePipelineArn(const char* value) { SetSourcePipelineArn(value); return *this;} /** *The infrastructure used when creating this image.
*/ inline const InfrastructureConfiguration& GetInfrastructureConfiguration() const{ return m_infrastructureConfiguration; } /** *The infrastructure used when creating this image.
*/ inline bool InfrastructureConfigurationHasBeenSet() const { return m_infrastructureConfigurationHasBeenSet; } /** *The infrastructure used when creating this image.
*/ inline void SetInfrastructureConfiguration(const InfrastructureConfiguration& value) { m_infrastructureConfigurationHasBeenSet = true; m_infrastructureConfiguration = value; } /** *The infrastructure used when creating this image.
*/ inline void SetInfrastructureConfiguration(InfrastructureConfiguration&& value) { m_infrastructureConfigurationHasBeenSet = true; m_infrastructureConfiguration = std::move(value); } /** *The infrastructure used when creating this image.
*/ inline Image& WithInfrastructureConfiguration(const InfrastructureConfiguration& value) { SetInfrastructureConfiguration(value); return *this;} /** *The infrastructure used when creating this image.
*/ inline Image& WithInfrastructureConfiguration(InfrastructureConfiguration&& value) { SetInfrastructureConfiguration(std::move(value)); return *this;} /** *The distribution configuration used when creating this image.
*/ inline const DistributionConfiguration& GetDistributionConfiguration() const{ return m_distributionConfiguration; } /** *The distribution configuration used when creating this image.
*/ inline bool DistributionConfigurationHasBeenSet() const { return m_distributionConfigurationHasBeenSet; } /** *The distribution configuration used when creating this image.
*/ inline void SetDistributionConfiguration(const DistributionConfiguration& value) { m_distributionConfigurationHasBeenSet = true; m_distributionConfiguration = value; } /** *The distribution configuration used when creating this image.
*/ inline void SetDistributionConfiguration(DistributionConfiguration&& value) { m_distributionConfigurationHasBeenSet = true; m_distributionConfiguration = std::move(value); } /** *The distribution configuration used when creating this image.
*/ inline Image& WithDistributionConfiguration(const DistributionConfiguration& value) { SetDistributionConfiguration(value); return *this;} /** *The distribution configuration used when creating this image.
*/ inline Image& WithDistributionConfiguration(DistributionConfiguration&& value) { SetDistributionConfiguration(std::move(value)); return *this;} /** *The image tests configuration used when creating this image.
*/ inline const ImageTestsConfiguration& GetImageTestsConfiguration() const{ return m_imageTestsConfiguration; } /** *The image tests configuration used when creating this image.
*/ inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; } /** *The image tests configuration used when creating this image.
*/ inline void SetImageTestsConfiguration(const ImageTestsConfiguration& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = value; } /** *The image tests configuration used when creating this image.
*/ inline void SetImageTestsConfiguration(ImageTestsConfiguration&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::move(value); } /** *The image tests configuration used when creating this image.
*/ inline Image& WithImageTestsConfiguration(const ImageTestsConfiguration& value) { SetImageTestsConfiguration(value); return *this;} /** *The image tests configuration used when creating this image.
*/ inline Image& WithImageTestsConfiguration(ImageTestsConfiguration&& value) { SetImageTestsConfiguration(std::move(value)); return *this;} /** *The date on which this image was created.
*/ inline const Aws::String& GetDateCreated() const{ return m_dateCreated; } /** *The date on which this image was created.
*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *The date on which this image was created.
*/ inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *The date on which this image was created.
*/ inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *The date on which this image was created.
*/ inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); } /** *The date on which this image was created.
*/ inline Image& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;} /** *The date on which this image was created.
*/ inline Image& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;} /** *The date on which this image was created.
*/ inline Image& WithDateCreated(const char* value) { SetDateCreated(value); return *this;} /** *The output resources produced when creating this image.
*/ inline const OutputResources& GetOutputResources() const{ return m_outputResources; } /** *The output resources produced when creating this image.
*/ inline bool OutputResourcesHasBeenSet() const { return m_outputResourcesHasBeenSet; } /** *The output resources produced when creating this image.
*/ inline void SetOutputResources(const OutputResources& value) { m_outputResourcesHasBeenSet = true; m_outputResources = value; } /** *The output resources produced when creating this image.
*/ inline void SetOutputResources(OutputResources&& value) { m_outputResourcesHasBeenSet = true; m_outputResources = std::move(value); } /** *The output resources produced when creating this image.
*/ inline Image& WithOutputResources(const OutputResources& value) { SetOutputResources(value); return *this;} /** *The output resources produced when creating this image.
*/ inline Image& WithOutputResources(OutputResources&& value) { SetOutputResources(std::move(value)); return *this;} /** *The tags of the image.
*/ inline const Aws::MapThe tags of the image.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags of the image.
*/ inline void SetTags(const Aws::MapThe tags of the image.
*/ inline void SetTags(Aws::MapThe tags of the image.
*/ inline Image& WithTags(const Aws::MapThe tags of the image.
*/ inline Image& WithTags(Aws::MapThe tags of the image.
*/ inline Image& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags of the image.
*/ inline Image& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags of the image.
*/ inline Image& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags of the image.
*/ inline Image& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags of the image.
*/ inline Image& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags of the image.
*/ inline Image& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags of the image.
*/ inline Image& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_version; bool m_versionHasBeenSet; Platform m_platform; bool m_platformHasBeenSet; bool m_enhancedImageMetadataEnabled; bool m_enhancedImageMetadataEnabledHasBeenSet; Aws::String m_osVersion; bool m_osVersionHasBeenSet; ImageState m_state; bool m_stateHasBeenSet; ImageRecipe m_imageRecipe; bool m_imageRecipeHasBeenSet; Aws::String m_sourcePipelineName; bool m_sourcePipelineNameHasBeenSet; Aws::String m_sourcePipelineArn; bool m_sourcePipelineArnHasBeenSet; InfrastructureConfiguration m_infrastructureConfiguration; bool m_infrastructureConfigurationHasBeenSet; DistributionConfiguration m_distributionConfiguration; bool m_distributionConfigurationHasBeenSet; ImageTestsConfiguration m_imageTestsConfiguration; bool m_imageTestsConfigurationHasBeenSet; Aws::String m_dateCreated; bool m_dateCreatedHasBeenSet; OutputResources m_outputResources; bool m_outputResourcesHasBeenSet; Aws::Map