Class CfnBot.ConditionalBranchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.ConditionalBranchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.ConditionalBranchProperty>
- Enclosing interface:
CfnBot.ConditionalBranchProperty
@Stability(Stable)
public static final class CfnBot.ConditionalBranchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.ConditionalBranchProperty>
A builder for
CfnBot.ConditionalBranchProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.condition
(IResolvable condition) Sets the value ofCfnBot.ConditionalBranchProperty.getCondition()
condition
(CfnBot.ConditionProperty condition) Sets the value ofCfnBot.ConditionalBranchProperty.getCondition()
Sets the value ofCfnBot.ConditionalBranchProperty.getName()
nextStep
(IResolvable nextStep) Sets the value ofCfnBot.ConditionalBranchProperty.getNextStep()
nextStep
(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.ConditionalBranchProperty.getNextStep()
response
(IResolvable response) Sets the value ofCfnBot.ConditionalBranchProperty.getResponse()
response
(CfnBot.ResponseSpecificationProperty response) Sets the value ofCfnBot.ConditionalBranchProperty.getResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
Sets the value ofCfnBot.ConditionalBranchProperty.getCondition()
- Parameters:
condition
- Contains the expression to evaluate. This parameter is required. If the condition is true, the branch's actions are taken.- Returns:
this
-
condition
@Stability(Stable) public CfnBot.ConditionalBranchProperty.Builder condition(CfnBot.ConditionProperty condition) Sets the value ofCfnBot.ConditionalBranchProperty.getCondition()
- Parameters:
condition
- Contains the expression to evaluate. This parameter is required. If the condition is true, the branch's actions are taken.- Returns:
this
-
name
Sets the value ofCfnBot.ConditionalBranchProperty.getName()
- Parameters:
name
- The name of the branch. This parameter is required.- Returns:
this
-
nextStep
Sets the value ofCfnBot.ConditionalBranchProperty.getNextStep()
- Parameters:
nextStep
- The next step in the conversation. This parameter is required.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBot.ConditionalBranchProperty.Builder nextStep(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.ConditionalBranchProperty.getNextStep()
- Parameters:
nextStep
- The next step in the conversation. This parameter is required.- Returns:
this
-
response
Sets the value ofCfnBot.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 CfnBot.ConditionalBranchProperty.Builder response(CfnBot.ResponseSpecificationProperty response) Sets the value ofCfnBot.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.ConditionalBranchProperty>
- Returns:
- a new instance of
CfnBot.ConditionalBranchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-