/** * 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 #include namespace Aws { namespace imagebuilder { namespace Model { /** */ class ImportComponentRequest : public ImagebuilderRequest { public: AWS_IMAGEBUILDER_API ImportComponentRequest(); // 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 "ImportComponent"; } 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 ImportComponentRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the component.

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

The name of the component.

*/ inline ImportComponentRequest& 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.

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& 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.

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 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.

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 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.

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 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.

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 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.

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 ImportComponentRequest& 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.

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 ImportComponentRequest& 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.

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 ImportComponentRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;} /** *

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The description of the component. Describes the contents of the * component.

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

The change description of the component. This description indicates the * change that 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. This description indicates the * change that 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. This description indicates the * change that 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. This description indicates the * change that 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. This description indicates the * change that 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. This description indicates the * change that has been made in this version, or what makes this version different * from other versions of this component.

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

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

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

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

*/ inline ImportComponentRequest& WithChangeDescription(const char* value) { SetChangeDescription(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 ImportComponentRequest& 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 ImportComponentRequest& WithType(ComponentType&& value) { SetType(std::move(value)); return *this;} /** *

The format of the resource that you want to import as a component.

*/ inline const ComponentFormat& GetFormat() const{ return m_format; } /** *

The format of the resource that you want to import as a component.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format of the resource that you want to import as a component.

*/ inline void SetFormat(const ComponentFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The format of the resource that you want to import as a component.

*/ inline void SetFormat(ComponentFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The format of the resource that you want to import as a component.

*/ inline ImportComponentRequest& WithFormat(const ComponentFormat& value) { SetFormat(value); return *this;} /** *

The format of the resource that you want to import as a component.

*/ inline ImportComponentRequest& WithFormat(ComponentFormat&& value) { SetFormat(std::move(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 ImportComponentRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *

The platform of the component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The data of the component. Used to specify the data inline. Either * data or uri can be used to specify the data within the * component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

The uri of the component. Must be an Amazon S3 URL and the requester must * have permission to access the Amazon S3 bucket. If you use Amazon S3, you can * specify component content up to your service quota. Either data or * uri can be used to specify the data within the component.

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

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

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

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

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

The ID of the KMS key that should be 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 should be 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 should be 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 should be used to encrypt this component.

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

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

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

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

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

The tags of the component.

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

The tags of the component.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags of the component.

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

The tags of the component.

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

The tags of the component.

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

The tags of the component.

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

The tags of the component.

*/ inline ImportComponentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags of the component.

*/ inline ImportComponentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the component.

*/ inline ImportComponentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the component.

*/ inline ImportComponentRequest& 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 component.

*/ inline ImportComponentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the component.

*/ inline ImportComponentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the component.

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

The idempotency token of the component.

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

The idempotency token of the component.

*/ inline ImportComponentRequest& 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; ComponentType m_type; bool m_typeHasBeenSet = false; ComponentFormat m_format; bool m_formatHasBeenSet = false; Platform m_platform; bool m_platformHasBeenSet = 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