/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

Provides a relative ranking that indicates how confident Amazon Kendra is * that the response is relevant to the query.

See Also:

AWS * API Reference

*/ class ScoreAttributes { public: AWS_KENDRA_API ScoreAttributes(); AWS_KENDRA_API ScoreAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API ScoreAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A relative ranking for how relevant the response is to the query.

*/ inline const ScoreConfidence& GetScoreConfidence() const{ return m_scoreConfidence; } /** *

A relative ranking for how relevant the response is to the query.

*/ inline bool ScoreConfidenceHasBeenSet() const { return m_scoreConfidenceHasBeenSet; } /** *

A relative ranking for how relevant the response is to the query.

*/ inline void SetScoreConfidence(const ScoreConfidence& value) { m_scoreConfidenceHasBeenSet = true; m_scoreConfidence = value; } /** *

A relative ranking for how relevant the response is to the query.

*/ inline void SetScoreConfidence(ScoreConfidence&& value) { m_scoreConfidenceHasBeenSet = true; m_scoreConfidence = std::move(value); } /** *

A relative ranking for how relevant the response is to the query.

*/ inline ScoreAttributes& WithScoreConfidence(const ScoreConfidence& value) { SetScoreConfidence(value); return *this;} /** *

A relative ranking for how relevant the response is to the query.

*/ inline ScoreAttributes& WithScoreConfidence(ScoreConfidence&& value) { SetScoreConfidence(std::move(value)); return *this;} private: ScoreConfidence m_scoreConfidence; bool m_scoreConfidenceHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws