Interface ResponseSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseSpecification.Builder,ResponseSpecification>,SdkBuilder<ResponseSpecification.Builder,ResponseSpecification>,SdkPojo
- Enclosing class:
- ResponseSpecification
public static interface ResponseSpecification.Builder extends SdkPojo, CopyableBuilder<ResponseSpecification.Builder,ResponseSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseSpecification.BuilderallowInterrupt(Boolean allowInterrupt)Indicates whether the user can interrupt a speech response from Amazon Lex.ResponseSpecification.BuildermessageGroups(Collection<MessageGroup> messageGroups)A collection of responses that Amazon Lex can send to the user.ResponseSpecification.BuildermessageGroups(Consumer<MessageGroup.Builder>... messageGroups)A collection of responses that Amazon Lex can send to the user.ResponseSpecification.BuildermessageGroups(MessageGroup... messageGroups)A collection of responses that Amazon Lex can send to the user.-
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, sdkFields
-
-
-
-
Method Detail
-
messageGroups
ResponseSpecification.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.
- Parameters:
messageGroups- A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
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.
- Parameters:
messageGroups- A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
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.Builderavoiding the need to create one manually viaMessageGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messageGroups(List.) - Parameters:
messageGroups- a consumer that will call methods onMessageGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messageGroups(java.util.Collection)
-
allowInterrupt
ResponseSpecification.Builder allowInterrupt(Boolean allowInterrupt)
Indicates whether the user can interrupt a speech response from Amazon Lex.
- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech response from Amazon Lex.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-