Interface ResponseSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseSpecification.Builder,,ResponseSpecification> SdkBuilder<ResponseSpecification.Builder,,ResponseSpecification> SdkPojo
- Enclosing class:
ResponseSpecification
@Mutable
@NotThreadSafe
public static interface ResponseSpecification.Builder
extends SdkPojo, CopyableBuilder<ResponseSpecification.Builder,ResponseSpecification>
-
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt(Boolean allowInterrupt) Indicates whether the user can interrupt a speech response from Amazon Lex.messageGroups(Collection<MessageGroup> messageGroups) A collection of responses that Amazon Lex can send to the user.messageGroups(Consumer<MessageGroup.Builder>... messageGroups) A collection of responses that Amazon Lex can send to the user.messageGroups(MessageGroup... messageGroups) A collection of responses that Amazon Lex can send to the user.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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 tomessageGroups(List<MessageGroup>).- 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:
-
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.
-