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

Provides a score that indicates the confidence that Amazon Lex V2 has that an * intent is the one that satisfies the user's intent.

See Also:

* AWS * API Reference

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

A score that indicates how confident Amazon Lex V2 is that an intent * satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores * indicate higher confidence.

*/ inline double GetScore() const{ return m_score; } /** *

A score that indicates how confident Amazon Lex V2 is that an intent * satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores * indicate higher confidence.

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

A score that indicates how confident Amazon Lex V2 is that an intent * satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores * indicate higher confidence.

*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *

A score that indicates how confident Amazon Lex V2 is that an intent * satisfies the user's intent. Ranges between 0.00 and 1.00. Higher scores * indicate higher confidence.

*/ inline ConfidenceScore& WithScore(double value) { SetScore(value); return *this;} private: double m_score; bool m_scoreHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws