Class TextResponseEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.TextResponseEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,TextResponseEvent.Builder,Buildable,CopyableBuilder<TextResponseEvent.Builder,TextResponseEvent>,SdkBuilder<TextResponseEvent.Builder,TextResponseEvent>
- Enclosing class:
- TextResponseEvent
protected static class TextResponseEvent.BuilderImpl extends Object implements TextResponseEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(TextResponseEvent model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextResponseEventbuild()TextResponseEvent.BuildereventId(String eventId)A unique identifier of the event sent by Amazon Lex V2.StringgetEventId()List<Message.Builder>getMessages()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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()voidsetEventId(String eventId)voidsetMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> messages)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(TextResponseEvent model)
-
-
Method Detail
-
getMessages
public final List<Message.Builder> getMessages()
-
setMessages
public final void setMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> messages)
-
messages
public final TextResponseEvent.Builder messages(Collection<Message> messages)
Description copied from interface: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.
- Specified by:
messagesin interfaceTextResponseEvent.Builder- 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
@SafeVarargs public final TextResponseEvent.Builder messages(Message... messages)
Description copied from interface: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.
- Specified by:
messagesin interfaceTextResponseEvent.Builder- 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
@SafeVarargs public final TextResponseEvent.Builder messages(Consumer<Message.Builder>... messages)
Description copied from interface: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.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.) - Specified by:
messagesin interfaceTextResponseEvent.Builder- 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)
-
getEventId
public final String getEventId()
-
setEventId
public final void setEventId(String eventId)
-
eventId
public final TextResponseEvent.Builder eventId(String eventId)
Description copied from interface:TextResponseEvent.BuilderA 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.- Specified by:
eventIdin interfaceTextResponseEvent.Builder- 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.
-
build
public TextResponseEvent build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<TextResponseEvent.Builder,TextResponseEvent>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-