Interface TextResponseEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TextResponseEvent.Builder,TextResponseEvent>,SdkBuilder<TextResponseEvent.Builder,TextResponseEvent>,SdkPojo
- All Known Subinterfaces:
DefaultTextResponseEvent.Builder
- All Known Implementing Classes:
TextResponseEvent.BuilderImpl
- Enclosing class:
- TextResponseEvent
public static interface TextResponseEvent.Builder extends SdkPojo, CopyableBuilder<TextResponseEvent.Builder,TextResponseEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextResponseEvent.BuildereventId(String eventId)A unique identifier of the event sent by Amazon Lex V2.TextResponseEvent.Buildermessages(Collection<Message> messages)A list of messages to send to the user.TextResponseEvent.Buildermessages(Consumer<Message.Builder>... messages)A list of messages to send to the user.TextResponseEvent.Buildermessages(Message... messages)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
messages
TextResponseEvent.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.
- 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
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.
- 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
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 theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messages(List.) - 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:
#messages(java.util.Collection)
-
eventId
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.- 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.
-
-