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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the index used for featuring results.

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

The identifier of the set of featured results that you want to update.

*/ inline const Aws::String& GetFeaturedResultsSetId() const{ return m_featuredResultsSetId; } /** *

The identifier of the set of featured results that you want to update.

*/ inline bool FeaturedResultsSetIdHasBeenSet() const { return m_featuredResultsSetIdHasBeenSet; } /** *

The identifier of the set of featured results that you want to update.

*/ inline void SetFeaturedResultsSetId(const Aws::String& value) { m_featuredResultsSetIdHasBeenSet = true; m_featuredResultsSetId = value; } /** *

The identifier of the set of featured results that you want to update.

*/ inline void SetFeaturedResultsSetId(Aws::String&& value) { m_featuredResultsSetIdHasBeenSet = true; m_featuredResultsSetId = std::move(value); } /** *

The identifier of the set of featured results that you want to update.

*/ inline void SetFeaturedResultsSetId(const char* value) { m_featuredResultsSetIdHasBeenSet = true; m_featuredResultsSetId.assign(value); } /** *

The identifier of the set of featured results that you want to update.

*/ inline UpdateFeaturedResultsSetRequest& WithFeaturedResultsSetId(const Aws::String& value) { SetFeaturedResultsSetId(value); return *this;} /** *

The identifier of the set of featured results that you want to update.

*/ inline UpdateFeaturedResultsSetRequest& WithFeaturedResultsSetId(Aws::String&& value) { SetFeaturedResultsSetId(std::move(value)); return *this;} /** *

The identifier of the set of featured results that you want to update.

*/ inline UpdateFeaturedResultsSetRequest& WithFeaturedResultsSetId(const char* value) { SetFeaturedResultsSetId(value); return *this;} /** *

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new name for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

A new description for the set of featured results.

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

You can set the status to ACTIVE or INACTIVE. When * the value is ACTIVE, featured results are ready for use. You can * still configure your settings before setting the status to ACTIVE. * 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; } /** *

You can set the status to ACTIVE or INACTIVE. When * the value is ACTIVE, featured results are ready for use. You can * still configure your settings before setting the status to ACTIVE. * 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; } /** *

You can set the status to ACTIVE or INACTIVE. When * the value is ACTIVE, featured results are ready for use. You can * still configure your settings before setting the status to ACTIVE. * 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; } /** *

You can set the status to ACTIVE or INACTIVE. When * the value is ACTIVE, featured results are ready for use. You can * still configure your settings before setting the status to ACTIVE. * 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); } /** *

You can set the status to ACTIVE or INACTIVE. When * the value is ACTIVE, featured results are ready for use. You can * still configure your settings before setting the status to ACTIVE. * 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 UpdateFeaturedResultsSetRequest& WithStatus(const FeaturedResultsSetStatus& value) { SetStatus(value); return *this;} /** *

You can set the status to ACTIVE or INACTIVE. When * the value is ACTIVE, featured results are ready for use. You can * still configure your settings before setting the status to ACTIVE. * 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 UpdateFeaturedResultsSetRequest& 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 UpdateFeaturedResultsSetRequest& 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 UpdateFeaturedResultsSetRequest& 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 UpdateFeaturedResultsSetRequest& 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 UpdateFeaturedResultsSetRequest& 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 UpdateFeaturedResultsSetRequest& 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 featured 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 featured 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 featured 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 featured 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 featured documents, * see FeaturedResultsSet.

*/ inline UpdateFeaturedResultsSetRequest& 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 featured documents, * see FeaturedResultsSet.

*/ inline UpdateFeaturedResultsSetRequest& 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 featured documents, * see FeaturedResultsSet.

*/ inline UpdateFeaturedResultsSetRequest& 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 featured documents, * see FeaturedResultsSet.

*/ inline UpdateFeaturedResultsSetRequest& AddFeaturedDocuments(FeaturedDocument&& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments.push_back(std::move(value)); return *this; } private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_featuredResultsSetId; bool m_featuredResultsSetIdHasBeenSet = false; Aws::String m_featuredResultsSetName; bool m_featuredResultsSetNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; FeaturedResultsSetStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_queryTexts; bool m_queryTextsHasBeenSet = false; Aws::Vector m_featuredDocuments; bool m_featuredDocumentsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws