Class CfnBot.DialogStateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.DialogStateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.DialogStateProperty>
- Enclosing interface:
CfnBot.DialogStateProperty
@Stability(Stable)
public static final class CfnBot.DialogStateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.DialogStateProperty>
A builder for
CfnBot.DialogStateProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dialogAction
(IResolvable dialogAction) Sets the value ofCfnBot.DialogStateProperty.getDialogAction()
dialogAction
(CfnBot.DialogActionProperty dialogAction) Sets the value ofCfnBot.DialogStateProperty.getDialogAction()
intent
(IResolvable intent) Sets the value ofCfnBot.DialogStateProperty.getIntent()
intent
(CfnBot.IntentOverrideProperty intent) Sets the value ofCfnBot.DialogStateProperty.getIntent()
sessionAttributes
(List<? extends Object> sessionAttributes) Sets the value ofCfnBot.DialogStateProperty.getSessionAttributes()
sessionAttributes
(IResolvable sessionAttributes) Sets the value ofCfnBot.DialogStateProperty.getSessionAttributes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dialogAction
Sets the value ofCfnBot.DialogStateProperty.getDialogAction()
- Parameters:
dialogAction
- Defines the action that the bot executes at runtime when the conversation reaches this step.- Returns:
this
-
dialogAction
@Stability(Stable) public CfnBot.DialogStateProperty.Builder dialogAction(CfnBot.DialogActionProperty dialogAction) Sets the value ofCfnBot.DialogStateProperty.getDialogAction()
- Parameters:
dialogAction
- Defines the action that the bot executes at runtime when the conversation reaches this step.- Returns:
this
-
intent
Sets the value ofCfnBot.DialogStateProperty.getIntent()
- Parameters:
intent
- Override settings to configure the intent state.- Returns:
this
-
intent
@Stability(Stable) public CfnBot.DialogStateProperty.Builder intent(CfnBot.IntentOverrideProperty intent) Sets the value ofCfnBot.DialogStateProperty.getIntent()
- Parameters:
intent
- Override settings to configure the intent state.- Returns:
this
-
sessionAttributes
@Stability(Stable) public CfnBot.DialogStateProperty.Builder sessionAttributes(IResolvable sessionAttributes) Sets the value ofCfnBot.DialogStateProperty.getSessionAttributes()
- Parameters:
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.- Returns:
this
-
sessionAttributes
@Stability(Stable) public CfnBot.DialogStateProperty.Builder sessionAttributes(List<? extends Object> sessionAttributes) Sets the value ofCfnBot.DialogStateProperty.getSessionAttributes()
- Parameters:
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.DialogStateProperty>
- Returns:
- a new instance of
CfnBot.DialogStateProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-