/** * 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 { /** *

The event sent from Amazon Lex V2 to your application with text to present to * the user.

See Also:

AWS * API Reference

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

A list of messages to send to the user. 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 to send to the user. 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 bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; } /** *

A list of messages to send to the user. 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_messagesHasBeenSet = true; m_messages = value; } /** *

A list of messages to send to the user. 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_messagesHasBeenSet = true; m_messages = std::move(value); } /** *

A list of messages to send to the user. 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 TextResponseEvent& WithMessages(const Aws::Vector& value) { SetMessages(value); return *this;} /** *

A list of messages to send to the user. 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 TextResponseEvent& WithMessages(Aws::Vector&& value) { SetMessages(std::move(value)); return *this;} /** *

A list of messages to send to the user. 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 TextResponseEvent& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; } /** *

A list of messages to send to the user. 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 TextResponseEvent& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; } /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline TextResponseEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline TextResponseEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

A unique identifier of the event sent by Amazon Lex V2. The identifier is in * the form RESPONSE-N, where N is a number starting with one and * incremented for each event sent by Amazon Lex V2 in the current session.

*/ inline TextResponseEvent& WithEventId(const char* value) { SetEventId(value); return *this;} private: Aws::Vector m_messages; bool m_messagesHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws