/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A detailed view of a component.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the component.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the component.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the component.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the component.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the component.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the component.
*/ inline Component& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the component.
*/ inline Component& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the component.
*/ inline Component& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the component.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the component.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the component.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the component.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the component.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the component.
*/ inline Component& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the component.
*/ inline Component& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the component.
*/ inline Component& WithName(const char* value) { SetName(value); return *this;} /** *The version of the component.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version of the component.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The version of the component.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The version of the component.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The version of the component.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The version of the component.
*/ inline Component& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version of the component.
*/ inline Component& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version of the component.
*/ inline Component& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The description of the component.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the component.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the component.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the component.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the component.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the component.
*/ inline Component& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the component.
*/ inline Component& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the component.
*/ inline Component& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The change description of the component.
*/ inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; } /** *The change description of the component.
*/ inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; } /** *The change description of the component.
*/ inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; } /** *The change description of the component.
*/ inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); } /** *The change description of the component.
*/ inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); } /** *The change description of the component.
*/ inline Component& WithChangeDescription(const Aws::String& value) { SetChangeDescription(value); return *this;} /** *The change description of the component.
*/ inline Component& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;} /** *The change description of the component.
*/ inline Component& WithChangeDescription(const char* value) { SetChangeDescription(value); return *this;} /** *The component type specifies whether Image Builder uses the component to * build the image or only to test it.
*/ inline const ComponentType& GetType() const{ return m_type; } /** *The component type specifies whether Image Builder uses the component to * build the image or only to test it.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The component type specifies whether Image Builder uses the component to * build the image or only to test it.
*/ inline void SetType(const ComponentType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The component type specifies whether Image Builder uses the component to * build the image or only to test it.
*/ inline void SetType(ComponentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The component type specifies whether Image Builder uses the component to * build the image or only to test it.
*/ inline Component& WithType(const ComponentType& value) { SetType(value); return *this;} /** *The component type specifies whether Image Builder uses the component to * build the image or only to test it.
*/ inline Component& WithType(ComponentType&& value) { SetType(std::move(value)); return *this;} /** *The operating system platform of the component.
*/ inline const Platform& GetPlatform() const{ return m_platform; } /** *The operating system platform of the component.
*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *The operating system platform of the component.
*/ inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *The operating system platform of the component.
*/ inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *The operating system platform of the component.
*/ inline Component& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *The operating system platform of the component.
*/ inline Component& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;} /** *The operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline const Aws::VectorThe operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; } /** *The operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline void SetSupportedOsVersions(const Aws::VectorThe operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline void SetSupportedOsVersions(Aws::VectorThe operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline Component& WithSupportedOsVersions(const Aws::VectorThe operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline Component& WithSupportedOsVersions(Aws::VectorThe operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline Component& AddSupportedOsVersions(const Aws::String& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; } /** *The operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline Component& AddSupportedOsVersions(Aws::String&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(std::move(value)); return *this; } /** *The operating system (OS) version supported by the component. If the OS * information is available, Image Builder performs a prefix match against the base * image OS version during image recipe creation.
*/ inline Component& AddSupportedOsVersions(const char* value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; } /** *Describes the current status of the component. This is used for components * that are no longer active.
*/ inline const ComponentState& GetState() const{ return m_state; } /** *Describes the current status of the component. This is used for components * that are no longer active.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *Describes the current status of the component. This is used for components * that are no longer active.
*/ inline void SetState(const ComponentState& value) { m_stateHasBeenSet = true; m_state = value; } /** *Describes the current status of the component. This is used for components * that are no longer active.
*/ inline void SetState(ComponentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *Describes the current status of the component. This is used for components * that are no longer active.
*/ inline Component& WithState(const ComponentState& value) { SetState(value); return *this;} /** *Describes the current status of the component. This is used for components * that are no longer active.
*/ inline Component& WithState(ComponentState&& value) { SetState(std::move(value)); return *this;} /** *Contains parameter details for each of the parameters that the component * document defined for the component.
*/ inline const Aws::VectorContains parameter details for each of the parameters that the component * document defined for the component.
*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *Contains parameter details for each of the parameters that the component * document defined for the component.
*/ inline void SetParameters(const Aws::VectorContains parameter details for each of the parameters that the component * document defined for the component.
*/ inline void SetParameters(Aws::VectorContains parameter details for each of the parameters that the component * document defined for the component.
*/ inline Component& WithParameters(const Aws::VectorContains parameter details for each of the parameters that the component * document defined for the component.
*/ inline Component& WithParameters(Aws::VectorContains parameter details for each of the parameters that the component * document defined for the component.
*/ inline Component& AddParameters(const ComponentParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** *Contains parameter details for each of the parameters that the component * document defined for the component.
*/ inline Component& AddParameters(ComponentParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } /** *The owner of the component.
*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *The owner of the component.
*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *The owner of the component.
*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *The owner of the component.
*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *The owner of the component.
*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *The owner of the component.
*/ inline Component& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *The owner of the component.
*/ inline Component& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *The owner of the component.
*/ inline Component& WithOwner(const char* value) { SetOwner(value); return *this;} /** *Component data contains the YAML document content for the component.
*/ inline const Aws::String& GetData() const{ return m_data; } /** *Component data contains the YAML document content for the component.
*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *Component data contains the YAML document content for the component.
*/ inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; } /** *Component data contains the YAML document content for the component.
*/ inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *Component data contains the YAML document content for the component.
*/ inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } /** *Component data contains the YAML document content for the component.
*/ inline Component& WithData(const Aws::String& value) { SetData(value); return *this;} /** *Component data contains the YAML document content for the component.
*/ inline Component& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *Component data contains the YAML document content for the component.
*/ inline Component& WithData(const char* value) { SetData(value); return *this;} /** *The KMS key identifier used to encrypt the component.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The KMS key identifier used to encrypt the component.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The KMS key identifier used to encrypt the component.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *The KMS key identifier used to encrypt the component.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *The KMS key identifier used to encrypt the component.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *The KMS key identifier used to encrypt the component.
*/ inline Component& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The KMS key identifier used to encrypt the component.
*/ inline Component& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The KMS key identifier used to encrypt the component.
*/ inline Component& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The encryption status of the component.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *The encryption status of the component.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *The encryption status of the component.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *The encryption status of the component.
*/ inline Component& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *The date that Image Builder created the component.
*/ inline const Aws::String& GetDateCreated() const{ return m_dateCreated; } /** *The date that Image Builder created the component.
*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *The date that Image Builder created the component.
*/ inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *The date that Image Builder created the component.
*/ inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *The date that Image Builder created the component.
*/ inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); } /** *The date that Image Builder created the component.
*/ inline Component& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;} /** *The date that Image Builder created the component.
*/ inline Component& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;} /** *The date that Image Builder created the component.
*/ inline Component& WithDateCreated(const char* value) { SetDateCreated(value); return *this;} /** *The tags that apply to the component.
*/ inline const Aws::MapThe tags that apply to the component.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags that apply to the component.
*/ inline void SetTags(const Aws::MapThe tags that apply to the component.
*/ inline void SetTags(Aws::MapThe tags that apply to the component.
*/ inline Component& WithTags(const Aws::MapThe tags that apply to the component.
*/ inline Component& WithTags(Aws::MapThe tags that apply to the component.
*/ inline Component& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags that apply to the component.
*/ inline Component& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags that apply to the component.
*/ inline Component& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags that apply to the component.
*/ inline Component& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags that apply to the component.
*/ inline Component& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags that apply to the component.
*/ inline Component& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags that apply to the component.
*/ inline Component& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline const Aws::String& GetPublisher() const{ return m_publisher; } /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; } /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline void SetPublisher(const Aws::String& value) { m_publisherHasBeenSet = true; m_publisher = value; } /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline void SetPublisher(Aws::String&& value) { m_publisherHasBeenSet = true; m_publisher = std::move(value); } /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline void SetPublisher(const char* value) { m_publisherHasBeenSet = true; m_publisher.assign(value); } /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline Component& WithPublisher(const Aws::String& value) { SetPublisher(value); return *this;} /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline Component& WithPublisher(Aws::String&& value) { SetPublisher(std::move(value)); return *this;} /** *Contains the name of the publisher if this is a third-party component. * Otherwise, this property is empty.
*/ inline Component& WithPublisher(const char* value) { SetPublisher(value); return *this;} /** *Indicates whether component source is hidden from view in the console, and * from component detail results for API, CLI, or SDK operations.
*/ inline bool GetObfuscate() const{ return m_obfuscate; } /** *Indicates whether component source is hidden from view in the console, and * from component detail results for API, CLI, or SDK operations.
*/ inline bool ObfuscateHasBeenSet() const { return m_obfuscateHasBeenSet; } /** *Indicates whether component source is hidden from view in the console, and * from component detail results for API, CLI, or SDK operations.
*/ inline void SetObfuscate(bool value) { m_obfuscateHasBeenSet = true; m_obfuscate = value; } /** *Indicates whether component source is hidden from view in the console, and * from component detail results for API, CLI, or SDK operations.
*/ inline Component& WithObfuscate(bool value) { SetObfuscate(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_changeDescription; bool m_changeDescriptionHasBeenSet = false; ComponentType m_type; bool m_typeHasBeenSet = false; Platform m_platform; bool m_platformHasBeenSet = false; Aws::Vector