Class CfnBotPropsMixin.ResponseSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.ResponseSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.ResponseSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.ResponseSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.ResponseSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.ResponseSpecificationProperty>
A builder for
CfnBotPropsMixin.ResponseSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getAllowInterrupt()allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getAllowInterrupt()build()Builds the configured instance.messageGroupsList(List<? extends Object> messageGroupsList) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getMessageGroupsList()messageGroupsList(IResolvable messageGroupsList) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getMessageGroupsList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.ResponseSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech response from Amazon Lex.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.ResponseSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech response from Amazon Lex.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBotPropsMixin.ResponseSpecificationProperty.Builder messageGroupsList(IResolvable messageGroupsList) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getMessageGroupsList()- Parameters:
messageGroupsList- A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBotPropsMixin.ResponseSpecificationProperty.Builder messageGroupsList(List<? extends Object> messageGroupsList) Sets the value ofCfnBotPropsMixin.ResponseSpecificationProperty.getMessageGroupsList()- Parameters:
messageGroupsList- A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.ResponseSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.ResponseSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-