public static interface TextResponseEvent.Builder extends SdkPojo, CopyableBuilder<TextResponseEvent.Builder,TextResponseEvent>
| Modifier and Type | Method and Description |
|---|---|
TextResponseEvent.Builder |
eventId(String eventId)
A unique identifier of the event sent by Amazon Lex V2.
|
TextResponseEvent.Builder |
messages(Collection<Message> messages)
A list of messages to send to the user.
|
TextResponseEvent.Builder |
messages(Consumer<Message.Builder>... messages)
A list of messages to send to the user.
|
TextResponseEvent.Builder |
messages(Message... messages)
A list of messages to send to the user.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTextResponseEvent.Builder messages(Collection<Message> 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.
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.TextResponseEvent.Builder messages(Message... 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.
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.TextResponseEvent.Builder messages(Consumer<Message.Builder>... 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.
This is a convenience method that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #messages(List) .messages - a consumer that will call methods on List.Builder #messages(List) TextResponseEvent.Builder eventId(String 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.
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.Copyright © 2022. All rights reserved.