protected static class TextResponseEvent.BuilderImpl extends Object implements TextResponseEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(TextResponseEvent model) |
| Modifier and Type | Method and Description |
|---|---|
TextResponseEvent |
build() |
TextResponseEvent.Builder |
eventId(String eventId)
A unique identifier of the event sent by Amazon Lex V2.
|
String |
getEventId() |
List<Message.Builder> |
getMessages() |
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.
|
List<SdkField<?>> |
sdkFields() |
void |
setEventId(String eventId) |
void |
setMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> messages) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(TextResponseEvent model)
public final List<Message.Builder> getMessages()
public final void setMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> messages)
public final TextResponseEvent.Builder messages(Collection<Message> messages)
TextResponseEvent.BuilderA 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 in interface TextResponseEvent.Buildermessages - 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.@SafeVarargs public final TextResponseEvent.Builder messages(Message... messages)
TextResponseEvent.BuilderA 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 in interface TextResponseEvent.Buildermessages - 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.@SafeVarargs public final TextResponseEvent.Builder messages(Consumer<Message.Builder>... messages)
TextResponseEvent.BuilderA 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 via Message.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #messages(List.
messages in interface TextResponseEvent.Buildermessages - a consumer that will call methods on
Message.Builder#messages(java.util.Collection) public final String getEventId()
public final void setEventId(String eventId)
public final TextResponseEvent.Builder eventId(String eventId)
TextResponseEvent.Builder
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 in interface TextResponseEvent.BuildereventId - 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.public TextResponseEvent build()
build in interface Buildablebuild in interface SdkBuilder<TextResponseEvent.Builder,TextResponseEvent>Copyright © 2022. All rights reserved.