public static interface ResponseSpecification.Builder extends SdkPojo, CopyableBuilder<ResponseSpecification.Builder,ResponseSpecification>
| Modifier and Type | Method and Description |
|---|---|
ResponseSpecification.Builder |
allowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech response from Amazon Lex.
|
ResponseSpecification.Builder |
messageGroups(Collection<MessageGroup> messageGroups)
A collection of responses that Amazon Lex can send to the user.
|
ResponseSpecification.Builder |
messageGroups(Consumer<MessageGroup.Builder>... messageGroups)
A collection of responses that Amazon Lex can send to the user.
|
ResponseSpecification.Builder |
messageGroups(MessageGroup... messageGroups)
A collection of responses that Amazon Lex can send to the user.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildResponseSpecification.Builder messageGroups(Collection<MessageGroup> messageGroups)
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
messageGroups - A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response
to send at runtime.ResponseSpecification.Builder messageGroups(MessageGroup... messageGroups)
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
messageGroups - A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response
to send at runtime.ResponseSpecification.Builder messageGroups(Consumer<MessageGroup.Builder>... messageGroups)
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
This is a convenience method that creates an instance of theMessageGroup.Builder avoiding the need to create
one manually via MessageGroup.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #messageGroups(List.
messageGroups - a consumer that will call methods on
MessageGroup.Builder#messageGroups(java.util.Collection) ResponseSpecification.Builder allowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech response from Amazon Lex.
allowInterrupt - Indicates whether the user can interrupt a speech response from Amazon Lex.Copyright © 2023. All rights reserved.