/** * 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 kendra { namespace Model { /** */ class AWS_KENDRA_API CreateIndexRequest : public KendraRequest { public: CreateIndexRequest(); // 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 "CreateIndex"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the new index.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the new index.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name for the new index.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name for the new index.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name for the new index.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name for the new index.

*/ inline CreateIndexRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name for the new index.

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

The name for the new index.

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

The Amazon Kendra edition to use for the index. Choose * DEVELOPER_EDITION for indexes intended for development, testing, or * proof of concept. Use ENTERPRISE_EDITION for your production * databases. Once you set the edition for an index, it can't be changed.

*/ inline const IndexEdition& GetEdition() const{ return m_edition; } /** *

The Amazon Kendra edition to use for the index. Choose * DEVELOPER_EDITION for indexes intended for development, testing, or * proof of concept. Use ENTERPRISE_EDITION for your production * databases. Once you set the edition for an index, it can't be changed.

*/ inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; } /** *

The Amazon Kendra edition to use for the index. Choose * DEVELOPER_EDITION for indexes intended for development, testing, or * proof of concept. Use ENTERPRISE_EDITION for your production * databases. Once you set the edition for an index, it can't be changed.

*/ inline void SetEdition(const IndexEdition& value) { m_editionHasBeenSet = true; m_edition = value; } /** *

The Amazon Kendra edition to use for the index. Choose * DEVELOPER_EDITION for indexes intended for development, testing, or * proof of concept. Use ENTERPRISE_EDITION for your production * databases. Once you set the edition for an index, it can't be changed.

*/ inline void SetEdition(IndexEdition&& value) { m_editionHasBeenSet = true; m_edition = std::move(value); } /** *

The Amazon Kendra edition to use for the index. Choose * DEVELOPER_EDITION for indexes intended for development, testing, or * proof of concept. Use ENTERPRISE_EDITION for your production * databases. Once you set the edition for an index, it can't be changed.

*/ inline CreateIndexRequest& WithEdition(const IndexEdition& value) { SetEdition(value); return *this;} /** *

The Amazon Kendra edition to use for the index. Choose * DEVELOPER_EDITION for indexes intended for development, testing, or * proof of concept. Use ENTERPRISE_EDITION for your production * databases. Once you set the edition for an index, it can't be changed.

*/ inline CreateIndexRequest& WithEdition(IndexEdition&& value) { SetEdition(std::move(value)); return *this;} /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline CreateIndexRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline CreateIndexRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

An IAM role that gives Amazon Kendra permissions to access your Amazon * CloudWatch logs and metrics. This is also the role used when you use the * BatchPutDocument operation to index documents from an Amazon S3 * bucket.

*/ inline CreateIndexRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The identifier of the AWS KMS customer managed key (CMK) to use to encrypt * data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric * CMKs.

*/ inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; } /** *

The identifier of the AWS KMS customer managed key (CMK) to use to encrypt * data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric * CMKs.

*/ inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; } /** *

The identifier of the AWS KMS customer managed key (CMK) to use to encrypt * data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric * CMKs.

*/ inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; } /** *

The identifier of the AWS KMS customer managed key (CMK) to use to encrypt * data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric * CMKs.

*/ inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); } /** *

The identifier of the AWS KMS customer managed key (CMK) to use to encrypt * data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric * CMKs.

*/ inline CreateIndexRequest& WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { SetServerSideEncryptionConfiguration(value); return *this;} /** *

The identifier of the AWS KMS customer managed key (CMK) to use to encrypt * data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric * CMKs.

*/ inline CreateIndexRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { SetServerSideEncryptionConfiguration(std::move(value)); return *this;} /** *

A description for the index.

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

A description for the index.

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

A description for the index.

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

A description for the index.

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

A description for the index.

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

A description for the index.

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

A description for the index.

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

A description for the index.

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

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

A token that you provide to identify the request to create an index. Multiple * calls to the CreateIndex operation with the same client token will * create only one index.”

*/ inline CreateIndexRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

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

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

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

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

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

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

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

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

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

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

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

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

*/ inline CreateIndexRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of key-value pairs that identify the index. You can use the tags to * identify and organize your resources and to control access to resources.

*/ inline CreateIndexRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet; IndexEdition m_edition; bool m_editionHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration; bool m_serverSideEncryptionConfigurationHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws