/** * 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 CreateFaqRequest : public KendraRequest { public: AWS_KENDRA_API CreateFaqRequest(); // 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 "CreateFaq"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index for the FAQ.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index for the FAQ.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index for the FAQ.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index for the FAQ.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index for the FAQ.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index for the FAQ.

*/ inline CreateFaqRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index for the FAQ.

*/ inline CreateFaqRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index for the FAQ.

*/ inline CreateFaqRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

A name for the FAQ.

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

A name for the FAQ.

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

A name for the FAQ.

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

A name for the FAQ.

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

A name for the FAQ.

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

A name for the FAQ.

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

A name for the FAQ.

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

A name for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

A description for the FAQ.

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

The path to the FAQ file in S3.

*/ inline const S3Path& GetS3Path() const{ return m_s3Path; } /** *

The path to the FAQ file in S3.

*/ inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; } /** *

The path to the FAQ file in S3.

*/ inline void SetS3Path(const S3Path& value) { m_s3PathHasBeenSet = true; m_s3Path = value; } /** *

The path to the FAQ file in S3.

*/ inline void SetS3Path(S3Path&& value) { m_s3PathHasBeenSet = true; m_s3Path = std::move(value); } /** *

The path to the FAQ file in S3.

*/ inline CreateFaqRequest& WithS3Path(const S3Path& value) { SetS3Path(value); return *this;} /** *

The path to the FAQ file in S3.

*/ inline CreateFaqRequest& WithS3Path(S3Path&& value) { SetS3Path(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

The Amazon Resource Name (ARN) of an IAM role with permission to access the * S3 bucket that contains the FAQs. For more information, see IAM access * roles for Amazon Kendra.

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

A list of key-value pairs that identify the FAQ. 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 FAQ. 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 FAQ. 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 FAQ. 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 FAQ. You can use the tags to * identify and organize your resources and to control access to resources.

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

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

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

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

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

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

*/ inline CreateFaqRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The format of the FAQ input file. You can choose between a basic CSV format, * a CSV format that includes customs attributes in a header, and a JSON format * that includes custom attributes.

The default format is CSV.

The * format must match the format of the file stored in the S3 bucket identified in * the S3Path parameter.

For more information, see Adding * questions and answers.

*/ inline const FaqFileFormat& GetFileFormat() const{ return m_fileFormat; } /** *

The format of the FAQ input file. You can choose between a basic CSV format, * a CSV format that includes customs attributes in a header, and a JSON format * that includes custom attributes.

The default format is CSV.

The * format must match the format of the file stored in the S3 bucket identified in * the S3Path parameter.

For more information, see Adding * questions and answers.

*/ inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; } /** *

The format of the FAQ input file. You can choose between a basic CSV format, * a CSV format that includes customs attributes in a header, and a JSON format * that includes custom attributes.

The default format is CSV.

The * format must match the format of the file stored in the S3 bucket identified in * the S3Path parameter.

For more information, see Adding * questions and answers.

*/ inline void SetFileFormat(const FaqFileFormat& value) { m_fileFormatHasBeenSet = true; m_fileFormat = value; } /** *

The format of the FAQ input file. You can choose between a basic CSV format, * a CSV format that includes customs attributes in a header, and a JSON format * that includes custom attributes.

The default format is CSV.

The * format must match the format of the file stored in the S3 bucket identified in * the S3Path parameter.

For more information, see Adding * questions and answers.

*/ inline void SetFileFormat(FaqFileFormat&& value) { m_fileFormatHasBeenSet = true; m_fileFormat = std::move(value); } /** *

The format of the FAQ input file. You can choose between a basic CSV format, * a CSV format that includes customs attributes in a header, and a JSON format * that includes custom attributes.

The default format is CSV.

The * format must match the format of the file stored in the S3 bucket identified in * the S3Path parameter.

For more information, see Adding * questions and answers.

*/ inline CreateFaqRequest& WithFileFormat(const FaqFileFormat& value) { SetFileFormat(value); return *this;} /** *

The format of the FAQ input file. You can choose between a basic CSV format, * a CSV format that includes customs attributes in a header, and a JSON format * that includes custom attributes.

The default format is CSV.

The * format must match the format of the file stored in the S3 bucket identified in * the S3Path parameter.

For more information, see Adding * questions and answers.

*/ inline CreateFaqRequest& WithFileFormat(FaqFileFormat&& value) { SetFileFormat(std::move(value)); return *this;} /** *

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

*/ 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 a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

A token that you provide to identify the request to create a FAQ. Multiple * calls to the CreateFaqRequest API with the same client token will * create only one FAQ.

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

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline const Aws::String& GetLanguageCode() const{ return m_languageCode; } /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); } /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline CreateFaqRequest& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;} /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline CreateFaqRequest& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

The code for a language. This allows you to support a language for the FAQ * document. English is supported by default. For more information on supported * languages, including their codes, see Adding * documents in languages other than English.

*/ inline CreateFaqRequest& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; S3Path m_s3Path; bool m_s3PathHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; FaqFileFormat m_fileFormat; bool m_fileFormatHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_languageCode; bool m_languageCodeHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws