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