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