Class CfnBot.PostFulfillmentStatusSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.PostFulfillmentStatusSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.PostFulfillmentStatusSpecificationProperty>
- Enclosing interface:
CfnBot.PostFulfillmentStatusSpecificationProperty
@Stability(Stable)
public static final class CfnBot.PostFulfillmentStatusSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.PostFulfillmentStatusSpecificationProperty>
A builder for
CfnBot.PostFulfillmentStatusSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureConditional
(IResolvable failureConditional) failureConditional
(CfnBot.ConditionalSpecificationProperty failureConditional) failureNextStep
(IResolvable failureNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureNextStep()
failureNextStep
(CfnBot.DialogStateProperty failureNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureNextStep()
failureResponse
(IResolvable failureResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureResponse()
failureResponse
(CfnBot.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureResponse()
successConditional
(IResolvable successConditional) successConditional
(CfnBot.ConditionalSpecificationProperty successConditional) successNextStep
(IResolvable successNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessNextStep()
successNextStep
(CfnBot.DialogStateProperty successNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessNextStep()
successResponse
(IResolvable successResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessResponse()
successResponse
(CfnBot.ResponseSpecificationProperty successResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessResponse()
timeoutConditional
(IResolvable timeoutConditional) timeoutConditional
(CfnBot.ConditionalSpecificationProperty timeoutConditional) timeoutNextStep
(IResolvable timeoutNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutNextStep()
timeoutNextStep
(CfnBot.DialogStateProperty timeoutNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutNextStep()
timeoutResponse
(IResolvable timeoutResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutResponse()
timeoutResponse
(CfnBot.ResponseSpecificationProperty timeoutResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failureConditional
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder failureConditional(IResolvable failureConditional) - Parameters:
failureConditional
- A list of conditional branches to evaluate after the fulfillment code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.- Returns:
this
-
failureConditional
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder failureConditional(CfnBot.ConditionalSpecificationProperty failureConditional) - Parameters:
failureConditional
- A list of conditional branches to evaluate after the fulfillment code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder failureNextStep(IResolvable failureNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureNextStep()
- Parameters:
failureNextStep
- Specifies the next step the bot runs after the fulfillment code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder failureNextStep(CfnBot.DialogStateProperty failureNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureNextStep()
- Parameters:
failureNextStep
- Specifies the next step the bot runs after the fulfillment code hook throws an exception or returns with theState
field of theIntent
object set toFailed
.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder failureResponse(IResolvable failureResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureResponse()
- Parameters:
failureResponse
- Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't successful.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder failureResponse(CfnBot.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getFailureResponse()
- Parameters:
failureResponse
- Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't successful.- Returns:
this
-
successConditional
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder successConditional(IResolvable successConditional) - Parameters:
successConditional
- A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.- Returns:
this
-
successConditional
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder successConditional(CfnBot.ConditionalSpecificationProperty successConditional) - Parameters:
successConditional
- A list of conditional branches to evaluate after the fulfillment code hook finishes successfully.- Returns:
this
-
successNextStep
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder successNextStep(IResolvable successNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessNextStep()
- Parameters:
successNextStep
- Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.- Returns:
this
-
successNextStep
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder successNextStep(CfnBot.DialogStateProperty successNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessNextStep()
- Parameters:
successNextStep
- Specifies the next step in the conversation that Amazon Lex invokes when the fulfillment code hook completes successfully.- Returns:
this
-
successResponse
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder successResponse(IResolvable successResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessResponse()
- Parameters:
successResponse
- Specifies a list of message groups that Amazon Lex uses to respond when the fulfillment is successful.- Returns:
this
-
successResponse
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder successResponse(CfnBot.ResponseSpecificationProperty successResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getSuccessResponse()
- Parameters:
successResponse
- Specifies a list of message groups that Amazon Lex uses to respond when the fulfillment is successful.- Returns:
this
-
timeoutConditional
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder timeoutConditional(IResolvable timeoutConditional) - Parameters:
timeoutConditional
- A list of conditional branches to evaluate if the fulfillment code hook times out.- Returns:
this
-
timeoutConditional
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder timeoutConditional(CfnBot.ConditionalSpecificationProperty timeoutConditional) - Parameters:
timeoutConditional
- A list of conditional branches to evaluate if the fulfillment code hook times out.- Returns:
this
-
timeoutNextStep
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder timeoutNextStep(IResolvable timeoutNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutNextStep()
- Parameters:
timeoutNextStep
- Specifies the next step that the bot runs when the fulfillment code hook times out.- Returns:
this
-
timeoutNextStep
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder timeoutNextStep(CfnBot.DialogStateProperty timeoutNextStep) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutNextStep()
- Parameters:
timeoutNextStep
- Specifies the next step that the bot runs when the fulfillment code hook times out.- Returns:
this
-
timeoutResponse
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder timeoutResponse(IResolvable timeoutResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutResponse()
- Parameters:
timeoutResponse
- Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't completed within the timeout period.- Returns:
this
-
timeoutResponse
@Stability(Stable) public CfnBot.PostFulfillmentStatusSpecificationProperty.Builder timeoutResponse(CfnBot.ResponseSpecificationProperty timeoutResponse) Sets the value ofCfnBot.PostFulfillmentStatusSpecificationProperty.getTimeoutResponse()
- Parameters:
timeoutResponse
- Specifies a list of message groups that Amazon Lex uses to respond when fulfillment isn't completed within the timeout period.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.PostFulfillmentStatusSpecificationProperty>
- Returns:
- a new instance of
CfnBot.PostFulfillmentStatusSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-