Interface Statement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Statement.Builder,Statement>,SdkBuilder<Statement.Builder,Statement>,SdkPojo
- Enclosing class:
- Statement
public static interface Statement.Builder extends SdkPojo, CopyableBuilder<Statement.Builder,Statement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Statement.Buildermessages(Collection<Message> messages)A collection of message objects.Statement.Buildermessages(Consumer<Message.Builder>... messages)A collection of message objects.Statement.Buildermessages(Message... messages)A collection of message objects.Statement.BuilderresponseCard(String responseCard)At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response.-
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
Statement.Builder messages(Collection<Message> messages)
A collection of message objects.
- Parameters:
messages- A collection of message objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
Statement.Builder messages(Message... messages)
A collection of message objects.
- Parameters:
messages- A collection of message objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
Statement.Builder messages(Consumer<Message.Builder>... messages)
A collection of message objects.
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)
-
responseCard
Statement.Builder responseCard(String responseCard)
At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.
- Parameters:
responseCard- At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-