/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace imagebuilder { namespace Model { /** */ class CreateComponentRequest : public ImagebuilderRequest { public: AWS_IMAGEBUILDER_API CreateComponentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateComponent"; } AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override; /** *

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

The name of the component.

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

The name of the component.

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

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; } /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; } /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; } /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); } /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); } /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline CreateComponentRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;} /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline CreateComponentRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;} /** *

The semantic version of the component. This version follows the semantic * version syntax.

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.

* */ inline CreateComponentRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;} /** *

Describes the contents of the component.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Describes the contents of the component.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Describes the contents of the component.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Describes the contents of the component.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Describes the contents of the component.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Describes the contents of the component.

*/ inline CreateComponentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Describes the contents of the component.

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

Describes the contents of the component.

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

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; } /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; } /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; } /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); } /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); } /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline CreateComponentRequest& WithChangeDescription(const Aws::String& value) { SetChangeDescription(value); return *this;} /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline CreateComponentRequest& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;} /** *

The change description of the component. Describes what change has been made * in this version, or what makes this version different from other versions of * this component.

*/ inline CreateComponentRequest& WithChangeDescription(const char* value) { SetChangeDescription(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 CreateComponentRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *

The operating system platform of the component.

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

The 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; } /** *

The 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; } /** *

The 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; } /** *

The 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); } /** *

The 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 CreateComponentRequest& WithSupportedOsVersions(const Aws::Vector& value) { SetSupportedOsVersions(value); return *this;} /** *

The 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 CreateComponentRequest& WithSupportedOsVersions(Aws::Vector&& value) { SetSupportedOsVersions(std::move(value)); return *this;} /** *

The 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 CreateComponentRequest& 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, a prefix match is performed against the base image OS * version during image recipe creation.

*/ inline CreateComponentRequest& 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, a prefix match is performed against the base image OS * version during image recipe creation.

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

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline const Aws::String& GetData() const{ return m_data; } /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; } /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline CreateComponentRequest& WithData(const Aws::String& value) { SetData(value); return *this;} /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline CreateComponentRequest& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *

Component data contains inline YAML document content for the * component. Alternatively, you can specify the uri of a YAML * document file stored in Amazon S3. However, you cannot specify both * properties.

*/ inline CreateComponentRequest& WithData(const char* value) { SetData(value); return *this;} /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline const Aws::String& GetUri() const{ return m_uri; } /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline bool UriHasBeenSet() const { return m_uriHasBeenSet; } /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; } /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); } /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); } /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline CreateComponentRequest& WithUri(const Aws::String& value) { SetUri(value); return *this;} /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline CreateComponentRequest& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;} /** *

The uri of a YAML component document file. This must be an S3 * URL (s3://bucket/key), and the requester must have permission to * access the S3 bucket it points to. If you use Amazon S3, you can specify * component content up to your service quota.

Alternatively, you can * specify the YAML document inline, using the component data * property. You cannot specify both properties.

*/ inline CreateComponentRequest& WithUri(const char* value) { SetUri(value); return *this;} /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline CreateComponentRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline CreateComponentRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The ID of the KMS key that is used to encrypt this component.

*/ inline CreateComponentRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The tags that apply to the component.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The 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::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that apply to the component.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that apply to the component.

*/ inline CreateComponentRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags that apply to the component.

*/ inline CreateComponentRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that apply to the component.

*/ inline CreateComponentRequest& 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 CreateComponentRequest& 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 CreateComponentRequest& 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 CreateComponentRequest& 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 CreateComponentRequest& 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 CreateComponentRequest& 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 CreateComponentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The idempotency token of the component.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The idempotency token of the component.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The idempotency token of the component.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The idempotency token of the component.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The idempotency token of the component.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The idempotency token of the component.

*/ inline CreateComponentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The idempotency token of the component.

*/ inline CreateComponentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The idempotency token of the component.

*/ inline CreateComponentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_semanticVersion; bool m_semanticVersionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_changeDescription; bool m_changeDescriptionHasBeenSet = false; Platform m_platform; bool m_platformHasBeenSet = false; Aws::Vector m_supportedOsVersions; bool m_supportedOsVersionsHasBeenSet = false; Aws::String m_data; bool m_dataHasBeenSet = false; Aws::String m_uri; bool m_uriHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws