Class CfnBotPropsMixin.ConditionalSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.ConditionalSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.ConditionalSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.ConditionalSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.ConditionalSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.ConditionalSpecificationProperty>
A builder for
CfnBotPropsMixin.ConditionalSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditionalBranches(List<? extends Object> conditionalBranches) conditionalBranches(IResolvable conditionalBranches) defaultBranch(CfnBotPropsMixin.DefaultConditionalBranchProperty defaultBranch) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getDefaultBranch()defaultBranch(IResolvable defaultBranch) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getDefaultBranch()Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getIsActive()isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getIsActive()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conditionalBranches
@Stability(Stable) public CfnBotPropsMixin.ConditionalSpecificationProperty.Builder conditionalBranches(IResolvable conditionalBranches) - Parameters:
conditionalBranches- A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.- Returns:
this
-
conditionalBranches
@Stability(Stable) public CfnBotPropsMixin.ConditionalSpecificationProperty.Builder conditionalBranches(List<? extends Object> conditionalBranches) - Parameters:
conditionalBranches- A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.- Returns:
this
-
defaultBranch
@Stability(Stable) public CfnBotPropsMixin.ConditionalSpecificationProperty.Builder defaultBranch(IResolvable defaultBranch) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getDefaultBranch()- Parameters:
defaultBranch- The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.- Returns:
this
-
defaultBranch
@Stability(Stable) public CfnBotPropsMixin.ConditionalSpecificationProperty.Builder defaultBranch(CfnBotPropsMixin.DefaultConditionalBranchProperty defaultBranch) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getDefaultBranch()- Parameters:
defaultBranch- The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.ConditionalSpecificationProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getIsActive()- Parameters:
isActive- Determines whether a conditional branch is active. WhenIsActiveis false, the conditions are not evaluated.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.ConditionalSpecificationProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.ConditionalSpecificationProperty.getIsActive()- Parameters:
isActive- Determines whether a conditional branch is active. WhenIsActiveis false, the conditions are not evaluated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.ConditionalSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.ConditionalSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-