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

An intent that Amazon Lex V2 determined might satisfy the user's utterance. * The intents are ordered by the confidence score.

See Also:

AWS * API Reference

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

Determines the threshold where Amazon Lex V2 will insert the * AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or * both when returning alternative intents in a response. * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * are only inserted if they are configured for the bot.

*/ inline const ConfidenceScore& GetNluConfidence() const{ return m_nluConfidence; } /** *

Determines the threshold where Amazon Lex V2 will insert the * AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or * both when returning alternative intents in a response. * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * are only inserted if they are configured for the bot.

*/ inline bool NluConfidenceHasBeenSet() const { return m_nluConfidenceHasBeenSet; } /** *

Determines the threshold where Amazon Lex V2 will insert the * AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or * both when returning alternative intents in a response. * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * are only inserted if they are configured for the bot.

*/ inline void SetNluConfidence(const ConfidenceScore& value) { m_nluConfidenceHasBeenSet = true; m_nluConfidence = value; } /** *

Determines the threshold where Amazon Lex V2 will insert the * AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or * both when returning alternative intents in a response. * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * are only inserted if they are configured for the bot.

*/ inline void SetNluConfidence(ConfidenceScore&& value) { m_nluConfidenceHasBeenSet = true; m_nluConfidence = std::move(value); } /** *

Determines the threshold where Amazon Lex V2 will insert the * AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or * both when returning alternative intents in a response. * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * are only inserted if they are configured for the bot.

*/ inline Interpretation& WithNluConfidence(const ConfidenceScore& value) { SetNluConfidence(value); return *this;} /** *

Determines the threshold where Amazon Lex V2 will insert the * AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or * both when returning alternative intents in a response. * AMAZON.FallbackIntent and AMAZON.KendraSearchIntent * are only inserted if they are configured for the bot.

*/ inline Interpretation& WithNluConfidence(ConfidenceScore&& value) { SetNluConfidence(std::move(value)); return *this;} /** *

The sentiment expressed in an utterance.

When the bot is configured * to send utterances to Amazon Comprehend for sentiment analysis, this field * contains the result of the analysis.

*/ inline const SentimentResponse& GetSentimentResponse() const{ return m_sentimentResponse; } /** *

The sentiment expressed in an utterance.

When the bot is configured * to send utterances to Amazon Comprehend for sentiment analysis, this field * contains the result of the analysis.

*/ inline bool SentimentResponseHasBeenSet() const { return m_sentimentResponseHasBeenSet; } /** *

The sentiment expressed in an utterance.

When the bot is configured * to send utterances to Amazon Comprehend for sentiment analysis, this field * contains the result of the analysis.

*/ inline void SetSentimentResponse(const SentimentResponse& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = value; } /** *

The sentiment expressed in an utterance.

When the bot is configured * to send utterances to Amazon Comprehend for sentiment analysis, this field * contains the result of the analysis.

*/ inline void SetSentimentResponse(SentimentResponse&& value) { m_sentimentResponseHasBeenSet = true; m_sentimentResponse = std::move(value); } /** *

The sentiment expressed in an utterance.

When the bot is configured * to send utterances to Amazon Comprehend for sentiment analysis, this field * contains the result of the analysis.

*/ inline Interpretation& WithSentimentResponse(const SentimentResponse& value) { SetSentimentResponse(value); return *this;} /** *

The sentiment expressed in an utterance.

When the bot is configured * to send utterances to Amazon Comprehend for sentiment analysis, this field * contains the result of the analysis.

*/ inline Interpretation& WithSentimentResponse(SentimentResponse&& value) { SetSentimentResponse(std::move(value)); return *this;} /** *

A list of intents that might satisfy the user's utterance. The intents are * ordered by the confidence score.

*/ inline const Intent& GetIntent() const{ return m_intent; } /** *

A list of intents that might satisfy the user's utterance. The intents are * ordered by the confidence score.

*/ inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; } /** *

A list of intents that might satisfy the user's utterance. The intents are * ordered by the confidence score.

*/ inline void SetIntent(const Intent& value) { m_intentHasBeenSet = true; m_intent = value; } /** *

A list of intents that might satisfy the user's utterance. The intents are * ordered by the confidence score.

*/ inline void SetIntent(Intent&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); } /** *

A list of intents that might satisfy the user's utterance. The intents are * ordered by the confidence score.

*/ inline Interpretation& WithIntent(const Intent& value) { SetIntent(value); return *this;} /** *

A list of intents that might satisfy the user's utterance. The intents are * ordered by the confidence score.

*/ inline Interpretation& WithIntent(Intent&& value) { SetIntent(std::move(value)); return *this;} private: ConfidenceScore m_nluConfidence; bool m_nluConfidenceHasBeenSet = false; SentimentResponse m_sentimentResponse; bool m_sentimentResponseHasBeenSet = false; Intent m_intent; bool m_intentHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws