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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

The identifier of the index that you want to use for featuring results.

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

A name for the set of featured results.

*/ inline const Aws::String& GetFeaturedResultsSetName() const{ return m_featuredResultsSetName; } /** *

A name for the set of featured results.

*/ inline bool FeaturedResultsSetNameHasBeenSet() const { return m_featuredResultsSetNameHasBeenSet; } /** *

A name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(const Aws::String& value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName = value; } /** *

A name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(Aws::String&& value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName = std::move(value); } /** *

A name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(const char* value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName.assign(value); } /** *

A name for the set of featured results.

*/ inline CreateFeaturedResultsSetRequest& WithFeaturedResultsSetName(const Aws::String& value) { SetFeaturedResultsSetName(value); return *this;} /** *

A name for the set of featured results.

*/ inline CreateFeaturedResultsSetRequest& WithFeaturedResultsSetName(Aws::String&& value) { SetFeaturedResultsSetName(std::move(value)); return *this;} /** *

A name for the set of featured results.

*/ inline CreateFeaturedResultsSetRequest& WithFeaturedResultsSetName(const char* value) { SetFeaturedResultsSetName(value); return *this;} /** *

A description for the set of featured results.

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

A description for the set of featured results.

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

A description for the set of featured results.

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

A description for the set of featured results.

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

A description for the set of featured results.

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

A description for the set of featured results.

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

A description for the set of featured results.

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

A description for the set of featured results.

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

A token that you provide to identify the request to create a set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

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

A token that you provide to identify the request to create a set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

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

A token that you provide to identify the request to create a set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

*/ 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 set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

*/ 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 set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

*/ 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 set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

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

A token that you provide to identify the request to create a set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

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

A token that you provide to identify the request to create a set of featured * results. Multiple calls to the CreateFeaturedResultsSet API with * the same client token will create only one featured results set.

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

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline const FeaturedResultsSetStatus& GetStatus() const{ return m_status; } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline void SetStatus(const FeaturedResultsSetStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline void SetStatus(FeaturedResultsSetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline CreateFeaturedResultsSetRequest& WithStatus(const FeaturedResultsSetStatus& value) { SetStatus(value); return *this;} /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline CreateFeaturedResultsSetRequest& WithStatus(FeaturedResultsSetStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline const Aws::Vector& GetQueryTexts() const{ return m_queryTexts; } /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline bool QueryTextsHasBeenSet() const { return m_queryTextsHasBeenSet; } /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline void SetQueryTexts(const Aws::Vector& value) { m_queryTextsHasBeenSet = true; m_queryTexts = value; } /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline void SetQueryTexts(Aws::Vector&& value) { m_queryTextsHasBeenSet = true; m_queryTexts = std::move(value); } /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& WithQueryTexts(const Aws::Vector& value) { SetQueryTexts(value); return *this;} /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& WithQueryTexts(Aws::Vector&& value) { SetQueryTexts(std::move(value)); return *this;} /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& AddQueryTexts(const Aws::String& value) { m_queryTextsHasBeenSet = true; m_queryTexts.push_back(value); return *this; } /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& AddQueryTexts(Aws::String&& value) { m_queryTextsHasBeenSet = true; m_queryTexts.push_back(std::move(value)); return *this; } /** *

A list of queries for featuring results. For more information on the list of * queries, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& AddQueryTexts(const char* value) { m_queryTextsHasBeenSet = true; m_queryTexts.push_back(value); return *this; } /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline const Aws::Vector& GetFeaturedDocuments() const{ return m_featuredDocuments; } /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline bool FeaturedDocumentsHasBeenSet() const { return m_featuredDocumentsHasBeenSet; } /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline void SetFeaturedDocuments(const Aws::Vector& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments = value; } /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline void SetFeaturedDocuments(Aws::Vector&& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments = std::move(value); } /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& WithFeaturedDocuments(const Aws::Vector& value) { SetFeaturedDocuments(value); return *this;} /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& WithFeaturedDocuments(Aws::Vector&& value) { SetFeaturedDocuments(std::move(value)); return *this;} /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& AddFeaturedDocuments(const FeaturedDocument& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments.push_back(value); return *this; } /** *

A list of document IDs for the documents you want to feature at the top of * the search results page. For more information on the list of documents, see FeaturedResultsSet.

*/ inline CreateFeaturedResultsSetRequest& AddFeaturedDocuments(FeaturedDocument&& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments.push_back(std::move(value)); return *this; } /** *

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

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

A list of key-value pairs that identify or categorize the featured results * set. You can also use tags to help control access to the featured results set. * Tag keys and values can consist of Unicode letters, digits, white space, and any * of the following symbols:_ . : / = + - @.

*/ inline CreateFeaturedResultsSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_featuredResultsSetName; bool m_featuredResultsSetNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; FeaturedResultsSetStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_queryTexts; bool m_queryTextsHasBeenSet = false; Aws::Vector m_featuredDocuments; bool m_featuredDocumentsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws