/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class UpdateQuerySuggestionsBlockListRequest : public KendraRequest { public: AWS_KENDRA_API UpdateQuerySuggestionsBlockListRequest(); // 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 "UpdateQuerySuggestionsBlockList"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the index for the block list.

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

The identifier of the block list you want to update.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the block list you want to update.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the block list you want to update.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the block list you want to update.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the block list you want to update.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the block list you want to update.

*/ inline UpdateQuerySuggestionsBlockListRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the block list you want to update.

*/ inline UpdateQuerySuggestionsBlockListRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the block list you want to update.

*/ inline UpdateQuerySuggestionsBlockListRequest& WithId(const char* value) { SetId(value); return *this;} /** *

A new name for the block list.

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

A new name for the block list.

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

A new name for the block list.

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

A new name for the block list.

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

A new name for the block list.

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

A new name for the block list.

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

A new name for the block list.

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

A new name for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

A new description for the block list.

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

The S3 path where your block list text file sits in S3.

If you update * your block list and provide the same path to the block list text file in S3, * then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra * does not automatically refresh your block list. You need to call the * UpdateQuerySuggestionsBlockList API to refresh you block list.

*

If you update your block list, then Amazon Kendra asynchronously refreshes * all query suggestions with the latest content in the S3 file. This means changes * might not take effect immediately.

*/ inline const S3Path& GetSourceS3Path() const{ return m_sourceS3Path; } /** *

The S3 path where your block list text file sits in S3.

If you update * your block list and provide the same path to the block list text file in S3, * then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra * does not automatically refresh your block list. You need to call the * UpdateQuerySuggestionsBlockList API to refresh you block list.

*

If you update your block list, then Amazon Kendra asynchronously refreshes * all query suggestions with the latest content in the S3 file. This means changes * might not take effect immediately.

*/ inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; } /** *

The S3 path where your block list text file sits in S3.

If you update * your block list and provide the same path to the block list text file in S3, * then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra * does not automatically refresh your block list. You need to call the * UpdateQuerySuggestionsBlockList API to refresh you block list.

*

If you update your block list, then Amazon Kendra asynchronously refreshes * all query suggestions with the latest content in the S3 file. This means changes * might not take effect immediately.

*/ inline void SetSourceS3Path(const S3Path& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = value; } /** *

The S3 path where your block list text file sits in S3.

If you update * your block list and provide the same path to the block list text file in S3, * then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra * does not automatically refresh your block list. You need to call the * UpdateQuerySuggestionsBlockList API to refresh you block list.

*

If you update your block list, then Amazon Kendra asynchronously refreshes * all query suggestions with the latest content in the S3 file. This means changes * might not take effect immediately.

*/ inline void SetSourceS3Path(S3Path&& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = std::move(value); } /** *

The S3 path where your block list text file sits in S3.

If you update * your block list and provide the same path to the block list text file in S3, * then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra * does not automatically refresh your block list. You need to call the * UpdateQuerySuggestionsBlockList API to refresh you block list.

*

If you update your block list, then Amazon Kendra asynchronously refreshes * all query suggestions with the latest content in the S3 file. This means changes * might not take effect immediately.

*/ inline UpdateQuerySuggestionsBlockListRequest& WithSourceS3Path(const S3Path& value) { SetSourceS3Path(value); return *this;} /** *

The S3 path where your block list text file sits in S3.

If you update * your block list and provide the same path to the block list text file in S3, * then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra * does not automatically refresh your block list. You need to call the * UpdateQuerySuggestionsBlockList API to refresh you block list.

*

If you update your block list, then Amazon Kendra asynchronously refreshes * all query suggestions with the latest content in the S3 file. This means changes * might not take effect immediately.

*/ inline UpdateQuerySuggestionsBlockListRequest& WithSourceS3Path(S3Path&& value) { SetSourceS3Path(std::move(value)); return *this;} /** *

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

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

The IAM (Identity and Access Management) role used to access the block list * text file in S3.

*/ inline UpdateQuerySuggestionsBlockListRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; S3Path m_sourceS3Path; bool m_sourceS3PathHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws