public static interface Statement.Builder extends CopyableBuilder<Statement.Builder,Statement>
Modifier and Type | Method and Description |
---|---|
Statement.Builder |
messages(Collection<Message> messages)
A collection of message objects.
|
Statement.Builder |
messages(Consumer<Message.Builder>... messages)
A collection of message objects.
|
Statement.Builder |
messages(Message... messages)
A collection of message objects.
|
Statement.Builder |
responseCard(String responseCard)
At runtime, if the client is using the PostText API, Amazon Lex
includes the response card in the response.
|
copy
applyMutation, build
Statement.Builder messages(Collection<Message> messages)
A collection of message objects.
messages
- A collection of message objects.Statement.Builder messages(Message... messages)
A collection of message objects.
messages
- A collection of message objects.Statement.Builder messages(Consumer<Message.Builder>... messages)
A collection of message objects.
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
- a consumer that will call methods on List.Builder
#messages(List)
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.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.