/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace imagebuilder { namespace Model { /** *

The defining characteristics of a specific version of an Amazon Web Services * TOE component.

See Also:

AWS * API Reference

*/ class ComponentVersion { public: AWS_IMAGEBUILDER_API ComponentVersion(); AWS_IMAGEBUILDER_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API ComponentVersion& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline ComponentVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline ComponentVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the component.

Semantic * versioning is included in each object's Amazon Resource Name (ARN), at the level * that applies to that object as follows:

  1. Versionless ARNs and * Name ARNs do not include specific values in any of the nodes. The nodes are * either left off entirely, or they are specified as wildcards, for example: * x.x.x.

  2. Version ARNs have only the first three nodes: * <major>.<minor>.<patch>

  3. Build version ARNs * have all four nodes, and point to a specific build for a specific version of an * object.

*/ inline ComponentVersion& 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 ComponentVersion& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the component.

*/ inline ComponentVersion& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the component.

*/ inline ComponentVersion& WithName(const char* value) { SetName(value); return *this;} /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline ComponentVersion& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline ComponentVersion& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The semantic version of the component.

The semantic version has * four nodes: <major>.<minor>.<patch>/<build>. You can * assign values for the first three, and can filter on all of them.

* Assignment: For the first three nodes you can assign any positive integer * value, including zero, with an upper limit of 2^30-1, or 1073741823 for each * node. Image Builder automatically assigns the build number to the fourth * node.

Patterns: You can use any numeric pattern that adheres to * the assignment requirements for the nodes that you can assign. For example, you * might choose a software version pattern, such as 1.0.0, or a date, such as * 2021.01.01.

Filtering: With semantic versioning, you have the * flexibility to use wildcards (x) to specify the most recent versions or nodes * when selecting the base image or components for your recipe. When you use a * wildcard in any node, all nodes to the right of the first wildcard must also be * wildcards.

*/ inline ComponentVersion& 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 ComponentVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the component.

*/ inline ComponentVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the component.

*/ inline ComponentVersion& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The platform of the component.

*/ inline const Platform& GetPlatform() const{ return m_platform; } /** *

The platform of the component.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The platform of the component.

*/ inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The platform of the component.

*/ inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The platform of the component.

*/ inline ComponentVersion& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *

The platform of the component.

*/ inline ComponentVersion& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;} /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline const Aws::Vector& GetSupportedOsVersions() const{ return m_supportedOsVersions; } /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; } /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline void SetSupportedOsVersions(const Aws::Vector& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = value; } /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline void SetSupportedOsVersions(Aws::Vector&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = std::move(value); } /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline ComponentVersion& WithSupportedOsVersions(const Aws::Vector& value) { SetSupportedOsVersions(value); return *this;} /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline ComponentVersion& WithSupportedOsVersions(Aws::Vector&& value) { SetSupportedOsVersions(std::move(value)); return *this;} /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline ComponentVersion& AddSupportedOsVersions(const Aws::String& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; } /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline ComponentVersion& AddSupportedOsVersions(Aws::String&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(std::move(value)); return *this; } /** *

he operating system (OS) version supported by the component. If the OS * information is available, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline ComponentVersion& AddSupportedOsVersions(const char* value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; } /** *

The type of the component denotes whether the component is used to build the * image or only to test it.

*/ inline const ComponentType& GetType() const{ return m_type; } /** *

The type of the component denotes whether the component is used to build the * image or only to test it.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the component denotes whether the component is used to build the * image or only to test it.

*/ inline void SetType(const ComponentType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the component denotes whether the component is used to build the * image or only to test it.

*/ inline void SetType(ComponentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the component denotes whether the component is used to build the * image or only to test it.

*/ inline ComponentVersion& WithType(const ComponentType& value) { SetType(value); return *this;} /** *

The type of the component denotes whether the component is used to build the * image or only to test it.

*/ inline ComponentVersion& WithType(ComponentType&& value) { SetType(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 ComponentVersion& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The owner of the component.

*/ inline ComponentVersion& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The owner of the component.

*/ inline ComponentVersion& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

The date that the component was created.

*/ inline const Aws::String& GetDateCreated() const{ return m_dateCreated; } /** *

The date that the component was created.

*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *

The date that the component was created.

*/ inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *

The date that the component was created.

*/ inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *

The date that the component was created.

*/ inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); } /** *

The date that the component was created.

*/ inline ComponentVersion& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;} /** *

The date that the component was created.

*/ inline ComponentVersion& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;} /** *

The date that the component was created.

*/ inline ComponentVersion& WithDateCreated(const char* value) { SetDateCreated(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; Platform m_platform; bool m_platformHasBeenSet = false; Aws::Vector m_supportedOsVersions; bool m_supportedOsVersionsHasBeenSet = false; ComponentType m_type; bool m_typeHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; Aws::String m_dateCreated; bool m_dateCreatedHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws