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.
|
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 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 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 in interface TextResponseEvent.Buildermessages - a consumer that will call methods on List.Builder #messages(List) public final void setMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> messages)
public final String getEventId()
public final TextResponseEvent.Builder eventId(String eventId)
TextResponseEvent.Builder
A unique identifier of the event sent by Amazon Lex. 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 in the current
session.
eventId in interface TextResponseEvent.BuildereventId - A unique identifier of the event sent by Amazon Lex. 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 in the current session.public final void setEventId(String eventId)
public TextResponseEvent build()
build in interface Buildablebuild in interface SdkBuilder<TextResponseEvent.Builder,TextResponseEvent>Copyright © 2021. All rights reserved.