Class CfnBot.InitialResponseSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.InitialResponseSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.InitialResponseSettingProperty>
- Enclosing interface:
- CfnBot.InitialResponseSettingProperty
@Stability(Stable)
public static final class CfnBot.InitialResponseSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.InitialResponseSettingProperty>
A builder for
CfnBot.InitialResponseSettingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeHook
(IResolvable codeHook) Sets the value ofCfnBot.InitialResponseSettingProperty.getCodeHook()
Sets the value ofCfnBot.InitialResponseSettingProperty.getCodeHook()
conditional
(IResolvable conditional) Sets the value ofCfnBot.InitialResponseSettingProperty.getConditional()
conditional
(CfnBot.ConditionalSpecificationProperty conditional) Sets the value ofCfnBot.InitialResponseSettingProperty.getConditional()
initialResponse
(IResolvable initialResponse) Sets the value ofCfnBot.InitialResponseSettingProperty.getInitialResponse()
initialResponse
(CfnBot.ResponseSpecificationProperty initialResponse) Sets the value ofCfnBot.InitialResponseSettingProperty.getInitialResponse()
nextStep
(IResolvable nextStep) Sets the value ofCfnBot.InitialResponseSettingProperty.getNextStep()
nextStep
(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.InitialResponseSettingProperty.getNextStep()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeHook
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder codeHook(IResolvable codeHook) Sets the value ofCfnBot.InitialResponseSettingProperty.getCodeHook()
- Parameters:
codeHook
- Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.- Returns:
this
-
codeHook
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder codeHook(CfnBot.DialogCodeHookInvocationSettingProperty codeHook) Sets the value ofCfnBot.InitialResponseSettingProperty.getCodeHook()
- Parameters:
codeHook
- Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.- Returns:
this
-
conditional
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder conditional(IResolvable conditional) Sets the value ofCfnBot.InitialResponseSettingProperty.getConditional()
- Parameters:
conditional
- Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.- Returns:
this
-
conditional
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder conditional(CfnBot.ConditionalSpecificationProperty conditional) Sets the value ofCfnBot.InitialResponseSettingProperty.getConditional()
- Parameters:
conditional
- Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.- Returns:
this
-
initialResponse
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder initialResponse(IResolvable initialResponse) Sets the value ofCfnBot.InitialResponseSettingProperty.getInitialResponse()
- Parameters:
initialResponse
- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
initialResponse
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder initialResponse(CfnBot.ResponseSpecificationProperty initialResponse) Sets the value ofCfnBot.InitialResponseSettingProperty.getInitialResponse()
- Parameters:
initialResponse
- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder nextStep(IResolvable nextStep) Sets the value ofCfnBot.InitialResponseSettingProperty.getNextStep()
- Parameters:
nextStep
- The next step in the conversation.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBot.InitialResponseSettingProperty.Builder nextStep(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.InitialResponseSettingProperty.getNextStep()
- Parameters:
nextStep
- The next step in the conversation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.InitialResponseSettingProperty>
- Returns:
- a new instance of
CfnBot.InitialResponseSettingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-