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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the index that was queried.

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

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline const Aws::String& GetQueryId() const{ return m_queryId; } /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; } /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; } /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); } /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); } /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline SubmitFeedbackRequest& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;} /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline SubmitFeedbackRequest& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;} /** *

The identifier of the specific query for which you are submitting feedback. * The query ID is returned in the response to the Query API.

*/ inline SubmitFeedbackRequest& WithQueryId(const char* value) { SetQueryId(value); return *this;} /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline const Aws::Vector& GetClickFeedbackItems() const{ return m_clickFeedbackItems; } /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline bool ClickFeedbackItemsHasBeenSet() const { return m_clickFeedbackItemsHasBeenSet; } /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline void SetClickFeedbackItems(const Aws::Vector& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems = value; } /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline void SetClickFeedbackItems(Aws::Vector&& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems = std::move(value); } /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline SubmitFeedbackRequest& WithClickFeedbackItems(const Aws::Vector& value) { SetClickFeedbackItems(value); return *this;} /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline SubmitFeedbackRequest& WithClickFeedbackItems(Aws::Vector&& value) { SetClickFeedbackItems(std::move(value)); return *this;} /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline SubmitFeedbackRequest& AddClickFeedbackItems(const ClickFeedback& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems.push_back(value); return *this; } /** *

Tells Amazon Kendra that a particular search result link was chosen by the * user.

*/ inline SubmitFeedbackRequest& AddClickFeedbackItems(ClickFeedback&& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems.push_back(std::move(value)); return *this; } /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline const Aws::Vector& GetRelevanceFeedbackItems() const{ return m_relevanceFeedbackItems; } /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline bool RelevanceFeedbackItemsHasBeenSet() const { return m_relevanceFeedbackItemsHasBeenSet; } /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline void SetRelevanceFeedbackItems(const Aws::Vector& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems = value; } /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline void SetRelevanceFeedbackItems(Aws::Vector&& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems = std::move(value); } /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline SubmitFeedbackRequest& WithRelevanceFeedbackItems(const Aws::Vector& value) { SetRelevanceFeedbackItems(value); return *this;} /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline SubmitFeedbackRequest& WithRelevanceFeedbackItems(Aws::Vector&& value) { SetRelevanceFeedbackItems(std::move(value)); return *this;} /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline SubmitFeedbackRequest& AddRelevanceFeedbackItems(const RelevanceFeedback& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems.push_back(value); return *this; } /** *

Provides Amazon Kendra with relevant or not relevant feedback for whether a * particular item was relevant to the search.

*/ inline SubmitFeedbackRequest& AddRelevanceFeedbackItems(RelevanceFeedback&& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems.push_back(std::move(value)); return *this; } private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_queryId; bool m_queryIdHasBeenSet = false; Aws::Vector m_clickFeedbackItems; bool m_clickFeedbackItemsHasBeenSet = false; Aws::Vector m_relevanceFeedbackItems; bool m_relevanceFeedbackItemsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws