Class CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty failureConditional) failureConditional(IResolvable failureConditional) failureNextStep(CfnBotPropsMixin.DialogStateProperty failureNextStep) failureNextStep(IResolvable failureNextStep) failureResponse(CfnBotPropsMixin.ResponseSpecificationProperty failureResponse) failureResponse(IResolvable failureResponse) successConditional(CfnBotPropsMixin.ConditionalSpecificationProperty successConditional) successConditional(IResolvable successConditional) successNextStep(CfnBotPropsMixin.DialogStateProperty successNextStep) successNextStep(IResolvable successNextStep) successResponse(CfnBotPropsMixin.ResponseSpecificationProperty successResponse) successResponse(IResolvable successResponse) timeoutConditional(CfnBotPropsMixin.ConditionalSpecificationProperty timeoutConditional) timeoutConditional(IResolvable timeoutConditional) timeoutNextStep(CfnBotPropsMixin.DialogStateProperty timeoutNextStep) timeoutNextStep(IResolvable timeoutNextStep) timeoutResponse(CfnBotPropsMixin.ResponseSpecificationProperty timeoutResponse) timeoutResponse(IResolvable timeoutResponse)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureConditional
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder failureConditional(IResolvable failureConditional) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getFailureConditional()- Parameters:
failureConditional- A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.- Returns:
this
-
failureConditional
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder failureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty failureConditional) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getFailureConditional()- Parameters:
failureConditional- A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder failureNextStep(IResolvable failureNextStep) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getFailureNextStep()- Parameters:
failureNextStep- Specifies the next step the bot runs after the dialog code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder failureNextStep(CfnBotPropsMixin.DialogStateProperty failureNextStep) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getFailureNextStep()- Parameters:
failureNextStep- Specifies the next step the bot runs after the dialog code hook throws an exception or returns with theStatefield of theIntentobject set toFailed.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder failureResponse(IResolvable failureResponse) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getFailureResponse()- Parameters:
failureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input when the code hook fails.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder failureResponse(CfnBotPropsMixin.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getFailureResponse()- Parameters:
failureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input when the code hook fails.- Returns:
this
-
successConditional
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder successConditional(IResolvable successConditional) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getSuccessConditional()- Parameters:
successConditional- A list of conditional branches to evaluate after the dialog code hook finishes successfully.- Returns:
this
-
successConditional
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder successConditional(CfnBotPropsMixin.ConditionalSpecificationProperty successConditional) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getSuccessConditional()- Parameters:
successConditional- A list of conditional branches to evaluate after the dialog code hook finishes successfully.- Returns:
this
-
successNextStep
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder successNextStep(IResolvable successNextStep) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getSuccessNextStep()- Parameters:
successNextStep- Specifics the next step the bot runs after the dialog code hook finishes successfully.- Returns:
this
-
successNextStep
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder successNextStep(CfnBotPropsMixin.DialogStateProperty successNextStep) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getSuccessNextStep()- Parameters:
successNextStep- Specifics the next step the bot runs after the dialog code hook finishes successfully.- Returns:
this
-
successResponse
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder successResponse(IResolvable successResponse) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getSuccessResponse()- Parameters:
successResponse- Specifies a list of message groups that Amazon Lex uses to respond when the code hook succeeds.- Returns:
this
-
successResponse
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder successResponse(CfnBotPropsMixin.ResponseSpecificationProperty successResponse) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getSuccessResponse()- Parameters:
successResponse- Specifies a list of message groups that Amazon Lex uses to respond when the code hook succeeds.- Returns:
this
-
timeoutConditional
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutConditional(IResolvable timeoutConditional) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getTimeoutConditional()- Parameters:
timeoutConditional- A list of conditional branches to evaluate if the code hook times out.- Returns:
this
-
timeoutConditional
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutConditional(CfnBotPropsMixin.ConditionalSpecificationProperty timeoutConditional) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getTimeoutConditional()- Parameters:
timeoutConditional- A list of conditional branches to evaluate if the code hook times out.- Returns:
this
-
timeoutNextStep
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutNextStep(IResolvable timeoutNextStep) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getTimeoutNextStep()- Parameters:
timeoutNextStep- Specifies the next step that the bot runs when the code hook times out.- Returns:
this
-
timeoutNextStep
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutNextStep(CfnBotPropsMixin.DialogStateProperty timeoutNextStep) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getTimeoutNextStep()- Parameters:
timeoutNextStep- Specifies the next step that the bot runs when the code hook times out.- Returns:
this
-
timeoutResponse
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutResponse(IResolvable timeoutResponse) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getTimeoutResponse()- Parameters:
timeoutResponse- Specifies a list of message groups that Amazon Lex uses to respond to the user input when the code hook times out.- Returns:
this
-
timeoutResponse
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutResponse(CfnBotPropsMixin.ResponseSpecificationProperty timeoutResponse) Sets the value ofCfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty.getTimeoutResponse()- Parameters:
timeoutResponse- Specifies a list of message groups that Amazon Lex uses to respond to the user input when the code hook times out.- Returns:
this
-
build
@Stability(Stable) public CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.PostDialogCodeHookInvocationSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-