Class CfnBotProps.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotProps>
- Enclosing interface:
CfnBotProps
@Stability(Stable)
public static final class CfnBotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotProps>
A builder for
CfnBotProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoBuildBotLocales
(Boolean autoBuildBotLocales) Sets the value ofCfnBotProps.getAutoBuildBotLocales()
autoBuildBotLocales
(IResolvable autoBuildBotLocales) Sets the value ofCfnBotProps.getAutoBuildBotLocales()
botFileS3Location
(IResolvable botFileS3Location) Sets the value ofCfnBotProps.getBotFileS3Location()
botFileS3Location
(CfnBot.S3LocationProperty botFileS3Location) Sets the value ofCfnBotProps.getBotFileS3Location()
botLocales
(List<? extends Object> botLocales) Sets the value ofCfnBotProps.getBotLocales()
botLocales
(IResolvable botLocales) Sets the value ofCfnBotProps.getBotLocales()
Sets the value ofCfnBotProps.getBotTags()
botTags
(IResolvable botTags) Sets the value ofCfnBotProps.getBotTags()
build()
Builds the configured instance.dataPrivacy
(Object dataPrivacy) Sets the value ofCfnBotProps.getDataPrivacy()
description
(String description) Sets the value ofCfnBotProps.getDescription()
idleSessionTtlInSeconds
(Number idleSessionTtlInSeconds) Sets the value ofCfnBotProps.getIdleSessionTtlInSeconds()
Sets the value ofCfnBotProps.getName()
Sets the value ofCfnBotProps.getRoleArn()
testBotAliasSettings
(IResolvable testBotAliasSettings) Sets the value ofCfnBotProps.getTestBotAliasSettings()
testBotAliasSettings
(CfnBot.TestBotAliasSettingsProperty testBotAliasSettings) Sets the value ofCfnBotProps.getTestBotAliasSettings()
testBotAliasTags
(List<? extends Object> testBotAliasTags) Sets the value ofCfnBotProps.getTestBotAliasTags()
testBotAliasTags
(IResolvable testBotAliasTags) Sets the value ofCfnBotProps.getTestBotAliasTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataPrivacy
Sets the value ofCfnBotProps.getDataPrivacy()
- Parameters:
dataPrivacy
- By default, data stored by Amazon Lex is encrypted. This parameter is required. TheDataPrivacy
structure provides settings that determine how Amazon Lex handles special cases of securing the data for your bot.- Returns:
this
-
idleSessionTtlInSeconds
@Stability(Stable) public CfnBotProps.Builder idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnBotProps.getIdleSessionTtlInSeconds()
- Parameters:
idleSessionTtlInSeconds
- The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. This parameter is required. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.
- Returns:
this
-
name
Sets the value ofCfnBotProps.getName()
- Parameters:
name
- The name of the bot locale. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnBotProps.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role used to build and run the bot. This parameter is required.- Returns:
this
-
autoBuildBotLocales
Sets the value ofCfnBotProps.getAutoBuildBotLocales()
- Parameters:
autoBuildBotLocales
- Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.- Returns:
this
-
autoBuildBotLocales
Sets the value ofCfnBotProps.getAutoBuildBotLocales()
- Parameters:
autoBuildBotLocales
- Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.- Returns:
this
-
botFileS3Location
Sets the value ofCfnBotProps.getBotFileS3Location()
- Parameters:
botFileS3Location
- The Amazon S3 location of files used to import a bot. The files must be in the import format specified in JSON format for importing and exporting in the Amazon Lex developer guide.- Returns:
this
-
botFileS3Location
@Stability(Stable) public CfnBotProps.Builder botFileS3Location(CfnBot.S3LocationProperty botFileS3Location) Sets the value ofCfnBotProps.getBotFileS3Location()
- Parameters:
botFileS3Location
- The Amazon S3 location of files used to import a bot. The files must be in the import format specified in JSON format for importing and exporting in the Amazon Lex developer guide.- Returns:
this
-
botLocales
Sets the value ofCfnBotProps.getBotLocales()
- Parameters:
botLocales
- A list of locales for the bot.- Returns:
this
-
botLocales
Sets the value ofCfnBotProps.getBotLocales()
- Parameters:
botLocales
- A list of locales for the bot.- Returns:
this
-
botTags
Sets the value ofCfnBotProps.getBotTags()
- Parameters:
botTags
- A list of tags to add to the bot. You can only add tags when you import a bot. You can't use theUpdateBot
operation to update tags. To update tags, use theTagResource
operation.- Returns:
this
-
botTags
Sets the value ofCfnBotProps.getBotTags()
- Parameters:
botTags
- A list of tags to add to the bot. You can only add tags when you import a bot. You can't use theUpdateBot
operation to update tags. To update tags, use theTagResource
operation.- Returns:
this
-
description
Sets the value ofCfnBotProps.getDescription()
- Parameters:
description
- The description of the version.- Returns:
this
-
testBotAliasSettings
@Stability(Stable) public CfnBotProps.Builder testBotAliasSettings(IResolvable testBotAliasSettings) Sets the value ofCfnBotProps.getTestBotAliasSettings()
- Parameters:
testBotAliasSettings
- Specifies configuration settings for the alias used to test the bot. If theTestBotAliasSettings
property is not specified, the settings are configured with default values.- Returns:
this
-
testBotAliasSettings
@Stability(Stable) public CfnBotProps.Builder testBotAliasSettings(CfnBot.TestBotAliasSettingsProperty testBotAliasSettings) Sets the value ofCfnBotProps.getTestBotAliasSettings()
- Parameters:
testBotAliasSettings
- Specifies configuration settings for the alias used to test the bot. If theTestBotAliasSettings
property is not specified, the settings are configured with default values.- Returns:
this
-
testBotAliasTags
Sets the value ofCfnBotProps.getTestBotAliasTags()
- Parameters:
testBotAliasTags
- A list of tags to add to the test alias for a bot. You can only add tags when you import a bot. You can't use theUpdateAlias
operation to update tags. To update tags on the test alias, use theTagResource
operation.- Returns:
this
-
testBotAliasTags
@Stability(Stable) public CfnBotProps.Builder testBotAliasTags(List<? extends Object> testBotAliasTags) Sets the value ofCfnBotProps.getTestBotAliasTags()
- Parameters:
testBotAliasTags
- A list of tags to add to the test alias for a bot. You can only add tags when you import a bot. You can't use theUpdateAlias
operation to update tags. To update tags on the test alias, use theTagResource
operation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBotProps>
- Returns:
- a new instance of
CfnBotProps
- Throws:
NullPointerException
- if any required attribute was not provided
-