Class CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.PostDialogCodeHookInvocationSpecificationProperty>
- Enclosing interface:
- CfnBot.PostDialogCodeHookInvocationSpecificationProperty
@Stability(Stable)
public static final class CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.PostDialogCodeHookInvocationSpecificationProperty>
A builder for
CfnBot.PostDialogCodeHookInvocationSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureConditional(IResolvable failureConditional) failureConditional(CfnBot.ConditionalSpecificationProperty failureConditional) failureNextStep(IResolvable failureNextStep) failureNextStep(CfnBot.DialogStateProperty failureNextStep) failureResponse(IResolvable failureResponse) failureResponse(CfnBot.ResponseSpecificationProperty failureResponse) successConditional(IResolvable successConditional) successConditional(CfnBot.ConditionalSpecificationProperty successConditional) successNextStep(IResolvable successNextStep) successNextStep(CfnBot.DialogStateProperty successNextStep) successResponse(IResolvable successResponse) successResponse(CfnBot.ResponseSpecificationProperty successResponse) timeoutConditional(IResolvable timeoutConditional) timeoutConditional(CfnBot.ConditionalSpecificationProperty timeoutConditional) timeoutNextStep(IResolvable timeoutNextStep) timeoutNextStep(CfnBot.DialogStateProperty timeoutNextStep) timeoutResponse(IResolvable timeoutResponse) timeoutResponse(CfnBot.ResponseSpecificationProperty timeoutResponse)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureConditional
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder failureConditional(IResolvable failureConditional) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder failureConditional(CfnBot.ConditionalSpecificationProperty failureConditional) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder failureNextStep(IResolvable failureNextStep) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder failureNextStep(CfnBot.DialogStateProperty failureNextStep) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder failureResponse(IResolvable failureResponse) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder failureResponse(CfnBot.ResponseSpecificationProperty failureResponse) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder successConditional(IResolvable successConditional) - Parameters:
successConditional- A list of conditional branches to evaluate after the dialog code hook finishes successfully.- Returns:
this
-
successConditional
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder successConditional(CfnBot.ConditionalSpecificationProperty successConditional) - Parameters:
successConditional- A list of conditional branches to evaluate after the dialog code hook finishes successfully.- Returns:
this
-
successNextStep
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder successNextStep(IResolvable successNextStep) - Parameters:
successNextStep- Specifics the next step the bot runs after the dialog code hook finishes successfully.- Returns:
this
-
successNextStep
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder successNextStep(CfnBot.DialogStateProperty successNextStep) - Parameters:
successNextStep- Specifics the next step the bot runs after the dialog code hook finishes successfully.- Returns:
this
-
successResponse
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder successResponse(IResolvable successResponse) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder successResponse(CfnBot.ResponseSpecificationProperty successResponse) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutConditional(IResolvable timeoutConditional) - Parameters:
timeoutConditional- A list of conditional branches to evaluate if the code hook times out.- Returns:
this
-
timeoutConditional
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutConditional(CfnBot.ConditionalSpecificationProperty timeoutConditional) - Parameters:
timeoutConditional- A list of conditional branches to evaluate if the code hook times out.- Returns:
this
-
timeoutNextStep
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutNextStep(IResolvable timeoutNextStep) - Parameters:
timeoutNextStep- Specifies the next step that the bot runs when the code hook times out.- Returns:
this
-
timeoutNextStep
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutNextStep(CfnBot.DialogStateProperty timeoutNextStep) - Parameters:
timeoutNextStep- Specifies the next step that the bot runs when the code hook times out.- Returns:
this
-
timeoutResponse
@Stability(Stable) public CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutResponse(IResolvable timeoutResponse) - 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 CfnBot.PostDialogCodeHookInvocationSpecificationProperty.Builder timeoutResponse(CfnBot.ResponseSpecificationProperty timeoutResponse) - 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.PostDialogCodeHookInvocationSpecificationProperty>- Returns:
- a new instance of
CfnBot.PostDialogCodeHookInvocationSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-