Class CfnBotPropsMixin.InitialResponseSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.InitialResponseSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.InitialResponseSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.InitialResponseSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.InitialResponseSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.InitialResponseSettingProperty>
A builder for
CfnBotPropsMixin.InitialResponseSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getCodeHook()codeHook(IResolvable codeHook) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getCodeHook()Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getConditional()conditional(IResolvable conditional) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getConditional()initialResponse(CfnBotPropsMixin.ResponseSpecificationProperty initialResponse) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getInitialResponse()initialResponse(IResolvable initialResponse) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getInitialResponse()nextStep(CfnBotPropsMixin.DialogStateProperty nextStep) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getNextStep()nextStep(IResolvable nextStep) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getNextStep()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeHook
@Stability(Stable) public CfnBotPropsMixin.InitialResponseSettingProperty.Builder codeHook(IResolvable codeHook) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.InitialResponseSettingProperty.Builder codeHook(CfnBotPropsMixin.DialogCodeHookInvocationSettingProperty codeHook) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.InitialResponseSettingProperty.Builder conditional(IResolvable conditional) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.InitialResponseSettingProperty.Builder conditional(CfnBotPropsMixin.ConditionalSpecificationProperty conditional) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.InitialResponseSettingProperty.Builder initialResponse(IResolvable initialResponse) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.InitialResponseSettingProperty.Builder initialResponse(CfnBotPropsMixin.ResponseSpecificationProperty initialResponse) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.InitialResponseSettingProperty.Builder nextStep(IResolvable nextStep) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getNextStep()- Parameters:
nextStep- The next step in the conversation.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBotPropsMixin.InitialResponseSettingProperty.Builder nextStep(CfnBotPropsMixin.DialogStateProperty nextStep) Sets the value ofCfnBotPropsMixin.InitialResponseSettingProperty.getNextStep()- Parameters:
nextStep- The next step in the conversation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.InitialResponseSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.InitialResponseSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-