Class CfnBotPropsMixin.IntentClosingSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.IntentClosingSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.IntentClosingSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.IntentClosingSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.IntentClosingSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.IntentClosingSettingProperty>
A builder for
CfnBotPropsMixin.IntentClosingSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.closingResponse(CfnBotPropsMixin.ResponseSpecificationProperty closingResponse) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getClosingResponse()closingResponse(IResolvable closingResponse) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getClosingResponse()Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getConditional()conditional(IResolvable conditional) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getConditional()Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getIsActive()isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getIsActive()nextStep(CfnBotPropsMixin.DialogStateProperty nextStep) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getNextStep()nextStep(IResolvable nextStep) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getNextStep()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
closingResponse
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder closingResponse(IResolvable closingResponse) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getClosingResponse()- Parameters:
closingResponse- The response that Amazon Lex sends to the user when the intent is complete.- Returns:
this
-
closingResponse
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder closingResponse(CfnBotPropsMixin.ResponseSpecificationProperty closingResponse) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getClosingResponse()- Parameters:
closingResponse- The response that Amazon Lex sends to the user when the intent is complete.- Returns:
this
-
conditional
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder conditional(IResolvable conditional) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getConditional()- Parameters:
conditional- A list of conditional branches associated with the intent's closing response. These branches are executed when thenextStepattribute is set toEvalutateConditional.- Returns:
this
-
conditional
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder conditional(CfnBotPropsMixin.ConditionalSpecificationProperty conditional) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getConditional()- Parameters:
conditional- A list of conditional branches associated with the intent's closing response. These branches are executed when thenextStepattribute is set toEvalutateConditional.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getIsActive()- Parameters:
isActive- Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If theIsActivefield isn't specified, the default is true.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getIsActive()- Parameters:
isActive- Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If theIsActivefield isn't specified, the default is true.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder nextStep(IResolvable nextStep) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getNextStep()- Parameters:
nextStep- Specifies the next step that the bot executes after playing the intent's closing response.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBotPropsMixin.IntentClosingSettingProperty.Builder nextStep(CfnBotPropsMixin.DialogStateProperty nextStep) Sets the value ofCfnBotPropsMixin.IntentClosingSettingProperty.getNextStep()- Parameters:
nextStep- Specifies the next step that the bot executes after playing the intent's closing response.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.IntentClosingSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.IntentClosingSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-