Class CfnBotPropsMixin.SlotCaptureSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SlotCaptureSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SlotCaptureSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.SlotCaptureSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SlotCaptureSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SlotCaptureSettingProperty>
A builder for
CfnBotPropsMixin.SlotCaptureSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.captureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty captureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureConditional()captureConditional(IResolvable captureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureConditional()captureNextStep(CfnBotPropsMixin.DialogStateProperty captureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureNextStep()captureNextStep(IResolvable captureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureNextStep()captureResponse(CfnBotPropsMixin.ResponseSpecificationProperty captureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureResponse()captureResponse(IResolvable captureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureResponse()Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCodeHook()codeHook(IResolvable codeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCodeHook()elicitationCodeHook(CfnBotPropsMixin.ElicitationCodeHookInvocationSettingProperty elicitationCodeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getElicitationCodeHook()elicitationCodeHook(IResolvable elicitationCodeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getElicitationCodeHook()failureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty failureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureConditional()failureConditional(IResolvable failureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureConditional()failureNextStep(CfnBotPropsMixin.DialogStateProperty failureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureNextStep()failureNextStep(IResolvable failureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureNextStep()failureResponse(CfnBotPropsMixin.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureResponse()failureResponse(IResolvable failureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
captureConditional
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder captureConditional(IResolvable captureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureConditional()- Parameters:
captureConditional- A list of conditional branches to evaluate after the slot value is captured.- Returns:
this
-
captureConditional
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder captureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty captureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureConditional()- Parameters:
captureConditional- A list of conditional branches to evaluate after the slot value is captured.- Returns:
this
-
captureNextStep
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder captureNextStep(IResolvable captureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureNextStep()- Parameters:
captureNextStep- Specifies the next step that the bot runs when the slot value is captured before the code hook times out.- Returns:
this
-
captureNextStep
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder captureNextStep(CfnBotPropsMixin.DialogStateProperty captureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureNextStep()- Parameters:
captureNextStep- Specifies the next step that the bot runs when the slot value is captured before the code hook times out.- Returns:
this
-
captureResponse
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder captureResponse(IResolvable captureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureResponse()- Parameters:
captureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
captureResponse
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder captureResponse(CfnBotPropsMixin.ResponseSpecificationProperty captureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCaptureResponse()- Parameters:
captureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
codeHook
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder codeHook(IResolvable codeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCodeHook()- Parameters:
codeHook- Code hook called after Amazon Lex successfully captures a slot value.- Returns:
this
-
codeHook
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder codeHook(CfnBotPropsMixin.DialogCodeHookInvocationSettingProperty codeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getCodeHook()- Parameters:
codeHook- Code hook called after Amazon Lex successfully captures a slot value.- Returns:
this
-
elicitationCodeHook
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder elicitationCodeHook(IResolvable elicitationCodeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getElicitationCodeHook()- Parameters:
elicitationCodeHook- Code hook called when Amazon Lex doesn't capture a slot value.- Returns:
this
-
elicitationCodeHook
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder elicitationCodeHook(CfnBotPropsMixin.ElicitationCodeHookInvocationSettingProperty elicitationCodeHook) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getElicitationCodeHook()- Parameters:
elicitationCodeHook- Code hook called when Amazon Lex doesn't capture a slot value.- Returns:
this
-
failureConditional
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder failureConditional(IResolvable failureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureConditional()- Parameters:
failureConditional- A list of conditional branches to evaluate when the slot value isn't captured.- Returns:
this
-
failureConditional
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder failureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty failureConditional) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureConditional()- Parameters:
failureConditional- A list of conditional branches to evaluate when the slot value isn't captured.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder failureNextStep(IResolvable failureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureNextStep()- Parameters:
failureNextStep- Specifies the next step that the bot runs when the slot value code is not recognized.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder failureNextStep(CfnBotPropsMixin.DialogStateProperty failureNextStep) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureNextStep()- Parameters:
failureNextStep- Specifies the next step that the bot runs when the slot value code is not recognized.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder failureResponse(IResolvable failureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureResponse()- Parameters:
failureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input when the slot fails to be captured.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBotPropsMixin.SlotCaptureSettingProperty.Builder failureResponse(CfnBotPropsMixin.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBotPropsMixin.SlotCaptureSettingProperty.getFailureResponse()- Parameters:
failureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input when the slot fails to be captured.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.SlotCaptureSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SlotCaptureSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-