Class CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.IntentConfirmationSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.IntentConfirmationSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.IntentConfirmationSettingProperty>
A builder for
CfnBotPropsMixin.IntentConfirmationSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeHook(IResolvable codeHook) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getCodeHook()Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getCodeHook()confirmationConditional(IResolvable confirmationConditional) confirmationConditional(CfnBotPropsMixin.ConditionalSpecificationProperty confirmationConditional) confirmationNextStep(IResolvable confirmationNextStep) confirmationNextStep(CfnBotPropsMixin.DialogStateProperty confirmationNextStep) confirmationResponse(IResolvable confirmationResponse) confirmationResponse(CfnBotPropsMixin.ResponseSpecificationProperty confirmationResponse) declinationConditional(IResolvable declinationConditional) declinationConditional(CfnBotPropsMixin.ConditionalSpecificationProperty declinationConditional) declinationNextStep(IResolvable declinationNextStep) declinationNextStep(CfnBotPropsMixin.DialogStateProperty declinationNextStep) declinationResponse(IResolvable declinationResponse) declinationResponse(CfnBotPropsMixin.ResponseSpecificationProperty declinationResponse) elicitationCodeHook(IResolvable elicitationCodeHook) elicitationCodeHook(CfnBotPropsMixin.ElicitationCodeHookInvocationSettingProperty elicitationCodeHook) failureConditional(IResolvable failureConditional) failureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty failureConditional) failureNextStep(IResolvable failureNextStep) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureNextStep()failureNextStep(CfnBotPropsMixin.DialogStateProperty failureNextStep) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureNextStep()failureResponse(IResolvable failureResponse) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureResponse()failureResponse(CfnBotPropsMixin.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureResponse()Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getIsActive()isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getIsActive()promptSpecification(IResolvable promptSpecification) promptSpecification(CfnBotPropsMixin.PromptSpecificationProperty promptSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeHook
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder codeHook(IResolvable codeHook) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getCodeHook()- Parameters:
codeHook- TheDialogCodeHookInvocationSettingobject associated with intent's confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step isInvokeDialogCodeHook.- Returns:
this
-
codeHook
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder codeHook(CfnBotPropsMixin.DialogCodeHookInvocationSettingProperty codeHook) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getCodeHook()- Parameters:
codeHook- TheDialogCodeHookInvocationSettingobject associated with intent's confirmation step. The dialog code hook is triggered based on these invocation settings when the confirmation next step or declination next step or failure next step isInvokeDialogCodeHook.- Returns:
this
-
confirmationConditional
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder confirmationConditional(IResolvable confirmationConditional) - Parameters:
confirmationConditional- A list of conditional branches to evaluate after the intent is closed.- Returns:
this
-
confirmationConditional
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder confirmationConditional(CfnBotPropsMixin.ConditionalSpecificationProperty confirmationConditional) - Parameters:
confirmationConditional- A list of conditional branches to evaluate after the intent is closed.- Returns:
this
-
confirmationNextStep
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder confirmationNextStep(IResolvable confirmationNextStep) - Parameters:
confirmationNextStep- Specifies the next step that the bot executes when the customer confirms the intent.- Returns:
this
-
confirmationNextStep
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder confirmationNextStep(CfnBotPropsMixin.DialogStateProperty confirmationNextStep) - Parameters:
confirmationNextStep- Specifies the next step that the bot executes when the customer confirms the intent.- Returns:
this
-
confirmationResponse
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder confirmationResponse(IResolvable confirmationResponse) - Parameters:
confirmationResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
confirmationResponse
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder confirmationResponse(CfnBotPropsMixin.ResponseSpecificationProperty confirmationResponse) - Parameters:
confirmationResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input.- Returns:
this
-
declinationConditional
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder declinationConditional(IResolvable declinationConditional) - Parameters:
declinationConditional- A list of conditional branches to evaluate after the intent is declined.- Returns:
this
-
declinationConditional
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder declinationConditional(CfnBotPropsMixin.ConditionalSpecificationProperty declinationConditional) - Parameters:
declinationConditional- A list of conditional branches to evaluate after the intent is declined.- Returns:
this
-
declinationNextStep
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder declinationNextStep(IResolvable declinationNextStep) - Parameters:
declinationNextStep- Specifies the next step that the bot executes when the customer declines the intent.- Returns:
this
-
declinationNextStep
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder declinationNextStep(CfnBotPropsMixin.DialogStateProperty declinationNextStep) - Parameters:
declinationNextStep- Specifies the next step that the bot executes when the customer declines the intent.- Returns:
this
-
declinationResponse
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder declinationResponse(IResolvable declinationResponse) - Parameters:
declinationResponse- When the user answers "no" to the question defined inpromptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.- Returns:
this
-
declinationResponse
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder declinationResponse(CfnBotPropsMixin.ResponseSpecificationProperty declinationResponse) - Parameters:
declinationResponse- When the user answers "no" to the question defined inpromptSpecification, Amazon Lex responds with this response to acknowledge that the intent was canceled.- Returns:
this
-
elicitationCodeHook
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder elicitationCodeHook(IResolvable elicitationCodeHook) - Parameters:
elicitationCodeHook- TheDialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.- Returns:
this
-
elicitationCodeHook
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder elicitationCodeHook(CfnBotPropsMixin.ElicitationCodeHookInvocationSettingProperty elicitationCodeHook) - Parameters:
elicitationCodeHook- TheDialogCodeHookInvocationSettingused when the code hook is invoked during confirmation prompt retries.- Returns:
this
-
failureConditional
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder failureConditional(IResolvable failureConditional) - Parameters:
failureConditional- Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.- Returns:
this
-
failureConditional
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder failureConditional(CfnBotPropsMixin.ConditionalSpecificationProperty failureConditional) - Parameters:
failureConditional- Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder failureNextStep(IResolvable failureNextStep) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureNextStep()- Parameters:
failureNextStep- The next step to take in the conversation if the confirmation step fails.- Returns:
this
-
failureNextStep
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder failureNextStep(CfnBotPropsMixin.DialogStateProperty failureNextStep) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureNextStep()- Parameters:
failureNextStep- The next step to take in the conversation if the confirmation step fails.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder failureResponse(IResolvable failureResponse) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureResponse()- Parameters:
failureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input when the intent confirmation fails.- Returns:
this
-
failureResponse
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder failureResponse(CfnBotPropsMixin.ResponseSpecificationProperty failureResponse) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getFailureResponse()- Parameters:
failureResponse- Specifies a list of message groups that Amazon Lex uses to respond the user input when the intent confirmation fails.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getIsActive()- Parameters:
isActive- Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and declination responses aren't sent. If theIsActivefield isn't specified, the default is true.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.IntentConfirmationSettingProperty.getIsActive()- Parameters:
isActive- Specifies whether the intent's confirmation is sent to the user. When this field is false, confirmation and declination responses aren't sent. If theIsActivefield isn't specified, the default is true.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder promptSpecification(IResolvable promptSpecification) - Parameters:
promptSpecification- Prompts the user to confirm the intent. This question should have a yes or no answer. Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with theOrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBotPropsMixin.IntentConfirmationSettingProperty.Builder promptSpecification(CfnBotPropsMixin.PromptSpecificationProperty promptSpecification) - Parameters:
promptSpecification- Prompts the user to confirm the intent. This question should have a yes or no answer. Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with theOrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.IntentConfirmationSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.IntentConfirmationSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-