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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The identifier of the index that contains the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

The name that should be associated with the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

A description of the FAQ.

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

The S3 location of the FAQ input data.

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

The S3 location of the FAQ input data.

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

The S3 location of the FAQ input data.

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

The S3 location of the FAQ input data.

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

The S3 location of the FAQ input data.

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

The S3 location of the FAQ input data.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The Amazon Resource Name (ARN) of a role with permission to access the S3 * bucket that contains the FAQs. For more information, see IAM 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; } private: Aws::String m_indexId; bool m_indexIdHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; S3Path m_s3Path; bool m_s3PathHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws