/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides feedback on how relevant a document is to a search. Your application
* uses the SubmitFeedback
API to provide relevance
* information.See Also:
AWS
* API Reference
The identifier of the search result that the user provided relevance feedback * for.
*/ inline const Aws::String& GetResultId() const{ return m_resultId; } /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; } /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; } /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); } /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); } /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline RelevanceFeedback& WithResultId(const Aws::String& value) { SetResultId(value); return *this;} /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline RelevanceFeedback& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;} /** *The identifier of the search result that the user provided relevance feedback * for.
*/ inline RelevanceFeedback& WithResultId(const char* value) { SetResultId(value); return *this;} /** *Whether the document was relevant or not relevant to the search.
*/ inline const RelevanceType& GetRelevanceValue() const{ return m_relevanceValue; } /** *Whether the document was relevant or not relevant to the search.
*/ inline bool RelevanceValueHasBeenSet() const { return m_relevanceValueHasBeenSet; } /** *Whether the document was relevant or not relevant to the search.
*/ inline void SetRelevanceValue(const RelevanceType& value) { m_relevanceValueHasBeenSet = true; m_relevanceValue = value; } /** *Whether the document was relevant or not relevant to the search.
*/ inline void SetRelevanceValue(RelevanceType&& value) { m_relevanceValueHasBeenSet = true; m_relevanceValue = std::move(value); } /** *Whether the document was relevant or not relevant to the search.
*/ inline RelevanceFeedback& WithRelevanceValue(const RelevanceType& value) { SetRelevanceValue(value); return *this;} /** *Whether the document was relevant or not relevant to the search.
*/ inline RelevanceFeedback& WithRelevanceValue(RelevanceType&& value) { SetRelevanceValue(std::move(value)); return *this;} private: Aws::String m_resultId; bool m_resultIdHasBeenSet = false; RelevanceType m_relevanceValue; bool m_relevanceValueHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws