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