Interface TextResponseEvent.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TextResponseEvent.Builder,
,TextResponseEvent> SdkBuilder<TextResponseEvent.Builder,
,TextResponseEvent> SdkPojo
- All Known Subinterfaces:
DefaultTextResponseEvent.Builder
- Enclosing class:
TextResponseEvent
-
Method Summary
Modifier and TypeMethodDescriptionA unique identifier of the event sent by Amazon Lex V2.messages
(Collection<Message> messages) A list of messages to send to the user.messages
(Consumer<Message.Builder>... messages) A list of messages to send to the user.A list of messages to send to the user.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessages(List<Message>)
.- Parameters:
messages
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
eventId
- A unique identifier of the event sent by Amazon Lex V2. The identifier is in the formRESPONSE-N
, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-