/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A result item for a document with a new relevancy score.See
* Also:
AWS
* API Reference
The identifier of the document from the search service.
*/ inline const Aws::String& GetDocumentId() const{ return m_documentId; } /** *The identifier of the document from the search service.
*/ inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; } /** *The identifier of the document from the search service.
*/ inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; } /** *The identifier of the document from the search service.
*/ inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); } /** *The identifier of the document from the search service.
*/ inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); } /** *The identifier of the document from the search service.
*/ inline RescoreResultItem& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;} /** *The identifier of the document from the search service.
*/ inline RescoreResultItem& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;} /** *The identifier of the document from the search service.
*/ inline RescoreResultItem& WithDocumentId(const char* value) { SetDocumentId(value); return *this;} /** *The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to * the result.
*/ inline double GetScore() const{ return m_score; } /** *The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to * the result.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to * the result.
*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to * the result.
*/ inline RescoreResultItem& WithScore(double value) { SetScore(value); return *this;} private: Aws::String m_documentId; bool m_documentIdHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; }; } // namespace Model } // namespace KendraRanking } // namespace Aws