/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexRuntimeV2 { namespace Model { class RecognizeTextResult { public: AWS_LEXRUNTIMEV2_API RecognizeTextResult(); AWS_LEXRUNTIMEV2_API RecognizeTextResult(const Aws::AmazonWebServiceResult& result); AWS_LEXRUNTIMEV2_API RecognizeTextResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline const Aws::Vector& GetMessages() const{ return m_messages; } /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline void SetMessages(const Aws::Vector& value) { m_messages = value; } /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline void SetMessages(Aws::Vector&& value) { m_messages = std::move(value); } /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline RecognizeTextResult& WithMessages(const Aws::Vector& value) { SetMessages(value); return *this;} /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline RecognizeTextResult& WithMessages(Aws::Vector&& value) { SetMessages(std::move(value)); return *this;} /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline RecognizeTextResult& AddMessages(const Message& value) { m_messages.push_back(value); return *this; } /** *

A list of messages last sent to the user. The messages are ordered based on * the order that you returned the messages from your Lambda function or the order * that the messages are defined in the bot.

*/ inline RecognizeTextResult& AddMessages(Message&& value) { m_messages.push_back(std::move(value)); return *this; } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline const SessionState& GetSessionState() const{ return m_sessionState; } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline void SetSessionState(const SessionState& value) { m_sessionState = value; } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline void SetSessionState(SessionState&& value) { m_sessionState = std::move(value); } /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline RecognizeTextResult& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;} /** *

Represents the current state of the dialog between the user and the bot.

*

Use this to determine the progress of the conversation and what the next * action may be.

*/ inline RecognizeTextResult& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;} /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline const Aws::Vector& GetInterpretations() const{ return m_interpretations; } /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline void SetInterpretations(const Aws::Vector& value) { m_interpretations = value; } /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline void SetInterpretations(Aws::Vector&& value) { m_interpretations = std::move(value); } /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline RecognizeTextResult& WithInterpretations(const Aws::Vector& value) { SetInterpretations(value); return *this;} /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline RecognizeTextResult& WithInterpretations(Aws::Vector&& value) { SetInterpretations(std::move(value)); return *this;} /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline RecognizeTextResult& AddInterpretations(const Interpretation& value) { m_interpretations.push_back(value); return *this; } /** *

A list of intents that Amazon Lex V2 determined might satisfy the user's * utterance.

Each interpretation includes the intent, a score that * indicates now confident Amazon Lex V2 is that the interpretation is the correct * one, and an optional sentiment response that indicates the sentiment expressed * in the utterance.

*/ inline RecognizeTextResult& AddInterpretations(Interpretation&& value) { m_interpretations.push_back(std::move(value)); return *this; } /** *

The attributes sent in the request.

*/ inline const Aws::Map& GetRequestAttributes() const{ return m_requestAttributes; } /** *

The attributes sent in the request.

*/ inline void SetRequestAttributes(const Aws::Map& value) { m_requestAttributes = value; } /** *

The attributes sent in the request.

*/ inline void SetRequestAttributes(Aws::Map&& value) { m_requestAttributes = std::move(value); } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& WithRequestAttributes(const Aws::Map& value) { SetRequestAttributes(value); return *this;} /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& WithRequestAttributes(Aws::Map&& value) { SetRequestAttributes(std::move(value)); return *this;} /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributes.emplace(key, value); return *this; } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributes.emplace(std::move(key), value); return *this; } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributes.emplace(key, std::move(value)); return *this; } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributes.emplace(std::move(key), std::move(value)); return *this; } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributes.emplace(key, std::move(value)); return *this; } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributes.emplace(std::move(key), value); return *this; } /** *

The attributes sent in the request.

*/ inline RecognizeTextResult& AddRequestAttributes(const char* key, const char* value) { m_requestAttributes.emplace(key, value); return *this; } /** *

The identifier of the session in use.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The identifier of the session in use.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionId = value; } /** *

The identifier of the session in use.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); } /** *

The identifier of the session in use.

*/ inline void SetSessionId(const char* value) { m_sessionId.assign(value); } /** *

The identifier of the session in use.

*/ inline RecognizeTextResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The identifier of the session in use.

*/ inline RecognizeTextResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The identifier of the session in use.

*/ inline RecognizeTextResult& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

The bot member that recognized the text.

*/ inline const RecognizedBotMember& GetRecognizedBotMember() const{ return m_recognizedBotMember; } /** *

The bot member that recognized the text.

*/ inline void SetRecognizedBotMember(const RecognizedBotMember& value) { m_recognizedBotMember = value; } /** *

The bot member that recognized the text.

*/ inline void SetRecognizedBotMember(RecognizedBotMember&& value) { m_recognizedBotMember = std::move(value); } /** *

The bot member that recognized the text.

*/ inline RecognizeTextResult& WithRecognizedBotMember(const RecognizedBotMember& value) { SetRecognizedBotMember(value); return *this;} /** *

The bot member that recognized the text.

*/ inline RecognizeTextResult& WithRecognizedBotMember(RecognizedBotMember&& value) { SetRecognizedBotMember(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline RecognizeTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RecognizeTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RecognizeTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_messages; SessionState m_sessionState; Aws::Vector m_interpretations; Aws::Map m_requestAttributes; Aws::String m_sessionId; RecognizedBotMember m_recognizedBotMember; Aws::String m_requestId; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws