/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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.
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.
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.
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.
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.
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.
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