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 SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
messageGroupsA 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.
 
- 
messageGroupsA 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.
 
- 
messageGroupsA 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 on- MessageGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
allowInterruptIndicates 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.
 
 
-