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

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline const Aws::String& GetRescoreExecutionPlanId() const{ return m_rescoreExecutionPlanId; } /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline bool RescoreExecutionPlanIdHasBeenSet() const { return m_rescoreExecutionPlanIdHasBeenSet; } /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline void SetRescoreExecutionPlanId(const Aws::String& value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId = value; } /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline void SetRescoreExecutionPlanId(Aws::String&& value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId = std::move(value); } /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline void SetRescoreExecutionPlanId(const char* value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId.assign(value); } /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline RescoreRequest& WithRescoreExecutionPlanId(const Aws::String& value) { SetRescoreExecutionPlanId(value); return *this;} /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline RescoreRequest& WithRescoreExecutionPlanId(Aws::String&& value) { SetRescoreExecutionPlanId(std::move(value)); return *this;} /** *

The identifier of the rescore execution plan. A rescore execution plan is an * Amazon Kendra Intelligent Ranking resource used for provisioning the * Rescore API.

*/ inline RescoreRequest& WithRescoreExecutionPlanId(const char* value) { SetRescoreExecutionPlanId(value); return *this;} /** *

The input query from the search service.

*/ inline const Aws::String& GetSearchQuery() const{ return m_searchQuery; } /** *

The input query from the search service.

*/ inline bool SearchQueryHasBeenSet() const { return m_searchQueryHasBeenSet; } /** *

The input query from the search service.

*/ inline void SetSearchQuery(const Aws::String& value) { m_searchQueryHasBeenSet = true; m_searchQuery = value; } /** *

The input query from the search service.

*/ inline void SetSearchQuery(Aws::String&& value) { m_searchQueryHasBeenSet = true; m_searchQuery = std::move(value); } /** *

The input query from the search service.

*/ inline void SetSearchQuery(const char* value) { m_searchQueryHasBeenSet = true; m_searchQuery.assign(value); } /** *

The input query from the search service.

*/ inline RescoreRequest& WithSearchQuery(const Aws::String& value) { SetSearchQuery(value); return *this;} /** *

The input query from the search service.

*/ inline RescoreRequest& WithSearchQuery(Aws::String&& value) { SetSearchQuery(std::move(value)); return *this;} /** *

The input query from the search service.

*/ inline RescoreRequest& WithSearchQuery(const char* value) { SetSearchQuery(value); return *this;} /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline const Aws::Vector& GetDocuments() const{ return m_documents; } /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; } /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline void SetDocuments(const Aws::Vector& value) { m_documentsHasBeenSet = true; m_documents = value; } /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline void SetDocuments(Aws::Vector&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); } /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline RescoreRequest& WithDocuments(const Aws::Vector& value) { SetDocuments(value); return *this;} /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline RescoreRequest& WithDocuments(Aws::Vector&& value) { SetDocuments(std::move(value)); return *this;} /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline RescoreRequest& AddDocuments(const Document& value) { m_documentsHasBeenSet = true; m_documents.push_back(value); return *this; } /** *

The list of documents for Amazon Kendra Intelligent Ranking to rescore or * rank on.

*/ inline RescoreRequest& AddDocuments(Document&& value) { m_documentsHasBeenSet = true; m_documents.push_back(std::move(value)); return *this; } private: Aws::String m_rescoreExecutionPlanId; bool m_rescoreExecutionPlanIdHasBeenSet = false; Aws::String m_searchQuery; bool m_searchQueryHasBeenSet = false; Aws::Vector m_documents; bool m_documentsHasBeenSet = false; }; } // namespace Model } // namespace KendraRanking } // namespace Aws