Class CfnAppInstanceBot.LexConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.chime.CfnAppInstanceBot.LexConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppInstanceBot.LexConfigurationProperty>
- Enclosing interface:
CfnAppInstanceBot.LexConfigurationProperty
@Stability(Stable)
public static final class CfnAppInstanceBot.LexConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppInstanceBot.LexConfigurationProperty>
A builder for
CfnAppInstanceBot.LexConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.invokedBy(IResolvable invokedBy) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getInvokedBy()invokedBy(CfnAppInstanceBot.InvokedByProperty invokedBy) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getInvokedBy()lexBotAliasArn(String lexBotAliasArn) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getLexBotAliasArn()Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getLocaleId()respondsTo(String respondsTo) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getRespondsTo()welcomeIntent(String welcomeIntent) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getWelcomeIntent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lexBotAliasArn
@Stability(Stable) public CfnAppInstanceBot.LexConfigurationProperty.Builder lexBotAliasArn(String lexBotAliasArn) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getLexBotAliasArn()- Parameters:
lexBotAliasArn- The ARN of the Amazon Lex V2 bot's alias. This parameter is required.- Returns:
this
-
localeId
@Stability(Stable) public CfnAppInstanceBot.LexConfigurationProperty.Builder localeId(String localeId) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getLocaleId()- Parameters:
localeId- Identifies the Amazon Lex V2 bot's language and locale. This parameter is required.- Returns:
this
-
invokedBy
@Stability(Stable) public CfnAppInstanceBot.LexConfigurationProperty.Builder invokedBy(IResolvable invokedBy) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getInvokedBy()- Parameters:
invokedBy- Specifies the type of message that triggers a bot.- Returns:
this
-
invokedBy
@Stability(Stable) public CfnAppInstanceBot.LexConfigurationProperty.Builder invokedBy(CfnAppInstanceBot.InvokedByProperty invokedBy) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getInvokedBy()- Parameters:
invokedBy- Specifies the type of message that triggers a bot.- Returns:
this
-
respondsTo
@Stability(Stable) public CfnAppInstanceBot.LexConfigurationProperty.Builder respondsTo(String respondsTo) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getRespondsTo()- Parameters:
respondsTo- Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.- Returns:
this
-
welcomeIntent
@Stability(Stable) public CfnAppInstanceBot.LexConfigurationProperty.Builder welcomeIntent(String welcomeIntent) Sets the value ofCfnAppInstanceBot.LexConfigurationProperty.getWelcomeIntent()- Parameters:
welcomeIntent- The name of the welcome intent configured in the Amazon Lex V2 bot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppInstanceBot.LexConfigurationProperty>- Returns:
- a new instance of
CfnAppInstanceBot.LexConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-