Class CfnBotPropsMixin.ConditionalBranchProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.ConditionalBranchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.ConditionalBranchProperty>
- Enclosing interface:
CfnBotPropsMixin.ConditionalBranchProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.ConditionalBranchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.ConditionalBranchProperty>
A builder for
CfnBotPropsMixin.ConditionalBranchProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.condition(CfnBotPropsMixin.ConditionProperty condition) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getCondition()condition(IResolvable condition) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getCondition()Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getName()nextStep(CfnBotPropsMixin.DialogStateProperty nextStep) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getNextStep()nextStep(IResolvable nextStep) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getNextStep()Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getResponse()response(IResolvable response) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
@Stability(Stable) public CfnBotPropsMixin.ConditionalBranchProperty.Builder condition(IResolvable condition) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getCondition()- Parameters:
condition- Contains the expression to evaluate. If the condition is true, the branch's actions are taken.- Returns:
this
-
condition
@Stability(Stable) public CfnBotPropsMixin.ConditionalBranchProperty.Builder condition(CfnBotPropsMixin.ConditionProperty condition) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getCondition()- Parameters:
condition- Contains the expression to evaluate. If the condition is true, the branch's actions are taken.- Returns:
this
-
name
Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getName()- Parameters:
name- The name of the branch.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBotPropsMixin.ConditionalBranchProperty.Builder nextStep(IResolvable nextStep) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getNextStep()- Parameters:
nextStep- The next step in the conversation.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBotPropsMixin.ConditionalBranchProperty.Builder nextStep(CfnBotPropsMixin.DialogStateProperty nextStep) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getNextStep()- Parameters:
nextStep- The next step in the conversation.- Returns:
this
-
response
@Stability(Stable) public CfnBotPropsMixin.ConditionalBranchProperty.Builder response(IResolvable response) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getResponse()- Parameters:
response- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
response
@Stability(Stable) public CfnBotPropsMixin.ConditionalBranchProperty.Builder response(CfnBotPropsMixin.ResponseSpecificationProperty response) Sets the value ofCfnBotPropsMixin.ConditionalBranchProperty.getResponse()- Parameters:
response- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.ConditionalBranchProperty>- Returns:
- a new instance of
CfnBotPropsMixin.ConditionalBranchProperty - Throws:
NullPointerException- if any required attribute was not provided
-