Class CfnBot.DefaultConditionalBranchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.DefaultConditionalBranchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.DefaultConditionalBranchProperty>
- Enclosing interface:
CfnBot.DefaultConditionalBranchProperty
@Stability(Stable)
public static final class CfnBot.DefaultConditionalBranchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.DefaultConditionalBranchProperty>
A builder for
CfnBot.DefaultConditionalBranchProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.nextStep
(IResolvable nextStep) Sets the value ofCfnBot.DefaultConditionalBranchProperty.getNextStep()
nextStep
(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.DefaultConditionalBranchProperty.getNextStep()
response
(IResolvable response) Sets the value ofCfnBot.DefaultConditionalBranchProperty.getResponse()
response
(CfnBot.ResponseSpecificationProperty response) Sets the value ofCfnBot.DefaultConditionalBranchProperty.getResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nextStep
@Stability(Stable) public CfnBot.DefaultConditionalBranchProperty.Builder nextStep(IResolvable nextStep) Sets the value ofCfnBot.DefaultConditionalBranchProperty.getNextStep()
- Parameters:
nextStep
- The next step in the conversation.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBot.DefaultConditionalBranchProperty.Builder nextStep(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.DefaultConditionalBranchProperty.getNextStep()
- Parameters:
nextStep
- The next step in the conversation.- Returns:
this
-
response
@Stability(Stable) public CfnBot.DefaultConditionalBranchProperty.Builder response(IResolvable response) Sets the value ofCfnBot.DefaultConditionalBranchProperty.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.DefaultConditionalBranchProperty.Builder response(CfnBot.ResponseSpecificationProperty response) Sets the value ofCfnBot.DefaultConditionalBranchProperty.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.DefaultConditionalBranchProperty>
- Returns:
- a new instance of
CfnBot.DefaultConditionalBranchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-