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
Modifier and TypeMethodDescriptionmessages(Collection<Message> messages) A collection of message objects.messages(Consumer<Message.Builder>... messages) A collection of message objects.A collection of message objects.responseCard(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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 tomessages(List<Message>).- 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:
-
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.
-