Class CfnBotPropsMixin.DialogActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.DialogActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.DialogActionProperty>
- Enclosing interface:
CfnBotPropsMixin.DialogActionProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.DialogActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.DialogActionProperty>
A builder for
CfnBotPropsMixin.DialogActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.slotToElicit(String slotToElicit) Sets the value ofCfnBotPropsMixin.DialogActionProperty.getSlotToElicit()suppressNextMessage(Boolean suppressNextMessage) Sets the value ofCfnBotPropsMixin.DialogActionProperty.getSuppressNextMessage()suppressNextMessage(IResolvable suppressNextMessage) Sets the value ofCfnBotPropsMixin.DialogActionProperty.getSuppressNextMessage()Sets the value ofCfnBotPropsMixin.DialogActionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
slotToElicit
@Stability(Stable) public CfnBotPropsMixin.DialogActionProperty.Builder slotToElicit(String slotToElicit) Sets the value ofCfnBotPropsMixin.DialogActionProperty.getSlotToElicit()- Parameters:
slotToElicit- If the dialog action isElicitSlot, defines the slot to elicit from the user.- Returns:
this
-
suppressNextMessage
@Stability(Stable) public CfnBotPropsMixin.DialogActionProperty.Builder suppressNextMessage(Boolean suppressNextMessage) Sets the value ofCfnBotPropsMixin.DialogActionProperty.getSuppressNextMessage()- Parameters:
suppressNextMessage- When true the next message for the intent is not used.- Returns:
this
-
suppressNextMessage
@Stability(Stable) public CfnBotPropsMixin.DialogActionProperty.Builder suppressNextMessage(IResolvable suppressNextMessage) Sets the value ofCfnBotPropsMixin.DialogActionProperty.getSuppressNextMessage()- Parameters:
suppressNextMessage- When true the next message for the intent is not used.- Returns:
this
-
type
Sets the value ofCfnBotPropsMixin.DialogActionProperty.getType()- Parameters:
type- The action that the bot should execute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.DialogActionProperty>- Returns:
- a new instance of
CfnBotPropsMixin.DialogActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-