Class CfnBot.IntentClosingSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.IntentClosingSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.IntentClosingSettingProperty>
- Enclosing interface:
CfnBot.IntentClosingSettingProperty
@Stability(Stable)
public static final class CfnBot.IntentClosingSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.IntentClosingSettingProperty>
A builder for
CfnBot.IntentClosingSettingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.closingResponse
(IResolvable closingResponse) Sets the value ofCfnBot.IntentClosingSettingProperty.getClosingResponse()
closingResponse
(CfnBot.ResponseSpecificationProperty closingResponse) Sets the value ofCfnBot.IntentClosingSettingProperty.getClosingResponse()
conditional
(IResolvable conditional) Sets the value ofCfnBot.IntentClosingSettingProperty.getConditional()
conditional
(CfnBot.ConditionalSpecificationProperty conditional) Sets the value ofCfnBot.IntentClosingSettingProperty.getConditional()
Sets the value ofCfnBot.IntentClosingSettingProperty.getIsActive()
isActive
(IResolvable isActive) Sets the value ofCfnBot.IntentClosingSettingProperty.getIsActive()
nextStep
(IResolvable nextStep) Sets the value ofCfnBot.IntentClosingSettingProperty.getNextStep()
nextStep
(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.IntentClosingSettingProperty.getNextStep()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
closingResponse
@Stability(Stable) public CfnBot.IntentClosingSettingProperty.Builder closingResponse(IResolvable closingResponse) Sets the value ofCfnBot.IntentClosingSettingProperty.getClosingResponse()
- Parameters:
closingResponse
- The response that Amazon Lex sends to the user when the intent is complete.- Returns:
this
-
closingResponse
@Stability(Stable) public CfnBot.IntentClosingSettingProperty.Builder closingResponse(CfnBot.ResponseSpecificationProperty closingResponse) Sets the value ofCfnBot.IntentClosingSettingProperty.getClosingResponse()
- Parameters:
closingResponse
- The response that Amazon Lex sends to the user when the intent is complete.- Returns:
this
-
conditional
@Stability(Stable) public CfnBot.IntentClosingSettingProperty.Builder conditional(IResolvable conditional) Sets the value ofCfnBot.IntentClosingSettingProperty.getConditional()
- Parameters:
conditional
- A list of conditional branches associated with the intent's closing response. These branches are executed when thenextStep
attribute is set toEvalutateConditional
.- Returns:
this
-
conditional
@Stability(Stable) public CfnBot.IntentClosingSettingProperty.Builder conditional(CfnBot.ConditionalSpecificationProperty conditional) Sets the value ofCfnBot.IntentClosingSettingProperty.getConditional()
- Parameters:
conditional
- A list of conditional branches associated with the intent's closing response. These branches are executed when thenextStep
attribute is set toEvalutateConditional
.- Returns:
this
-
isActive
Sets the value ofCfnBot.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 theIsActive
field isn't specified, the default is true.- Returns:
this
-
isActive
@Stability(Stable) public CfnBot.IntentClosingSettingProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBot.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 theIsActive
field isn't specified, the default is true.- Returns:
this
-
nextStep
@Stability(Stable) public CfnBot.IntentClosingSettingProperty.Builder nextStep(IResolvable nextStep) Sets the value ofCfnBot.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 CfnBot.IntentClosingSettingProperty.Builder nextStep(CfnBot.DialogStateProperty nextStep) Sets the value ofCfnBot.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.IntentClosingSettingProperty>
- Returns:
- a new instance of
CfnBot.IntentClosingSettingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-