Class CfnBotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotMixinProps>
- Enclosing interface:
CfnBotMixinProps
@Stability(Stable)
public static final class CfnBotMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotMixinProps>
A builder for
CfnBotMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoBuildBotLocales(Boolean autoBuildBotLocales) Sets the value ofCfnBotMixinProps.getAutoBuildBotLocales()autoBuildBotLocales(IResolvable autoBuildBotLocales) Sets the value ofCfnBotMixinProps.getAutoBuildBotLocales()botFileS3Location(CfnBotPropsMixin.S3LocationProperty botFileS3Location) Sets the value ofCfnBotMixinProps.getBotFileS3Location()botFileS3Location(IResolvable botFileS3Location) Sets the value ofCfnBotMixinProps.getBotFileS3Location()botLocales(List<? extends Object> botLocales) Sets the value ofCfnBotMixinProps.getBotLocales()botLocales(IResolvable botLocales) Sets the value ofCfnBotMixinProps.getBotLocales()Sets the value ofCfnBotMixinProps.getBotTags()build()Builds the configured instance.dataPrivacy(Object dataPrivacy) Sets the value ofCfnBotMixinProps.getDataPrivacy()description(String description) Sets the value ofCfnBotMixinProps.getDescription()errorLogSettings(CfnBotPropsMixin.ErrorLogSettingsProperty errorLogSettings) Sets the value ofCfnBotMixinProps.getErrorLogSettings()errorLogSettings(IResolvable errorLogSettings) Sets the value ofCfnBotMixinProps.getErrorLogSettings()idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnBotMixinProps.getIdleSessionTtlInSeconds()Sets the value ofCfnBotMixinProps.getName()replication(CfnBotPropsMixin.ReplicationProperty replication) Sets the value ofCfnBotMixinProps.getReplication()replication(IResolvable replication) Sets the value ofCfnBotMixinProps.getReplication()Sets the value ofCfnBotMixinProps.getRoleArn()Sets the value ofCfnBotMixinProps.getRoleArn()testBotAliasSettings(CfnBotPropsMixin.TestBotAliasSettingsProperty testBotAliasSettings) Sets the value ofCfnBotMixinProps.getTestBotAliasSettings()testBotAliasSettings(IResolvable testBotAliasSettings) Sets the value ofCfnBotMixinProps.getTestBotAliasSettings()testBotAliasTags(List<? extends Object> testBotAliasTags) Sets the value ofCfnBotMixinProps.getTestBotAliasTags()testBotAliasTags(IResolvable testBotAliasTags) Sets the value ofCfnBotMixinProps.getTestBotAliasTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoBuildBotLocales
Sets the value ofCfnBotMixinProps.getAutoBuildBotLocales()- Parameters:
autoBuildBotLocales- Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.- Returns:
this
-
autoBuildBotLocales
@Stability(Stable) public CfnBotMixinProps.Builder autoBuildBotLocales(IResolvable autoBuildBotLocales) Sets the value ofCfnBotMixinProps.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 ofCfnBotMixinProps.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 CfnBotMixinProps.Builder botFileS3Location(CfnBotPropsMixin.S3LocationProperty botFileS3Location) Sets the value ofCfnBotMixinProps.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 ofCfnBotMixinProps.getBotLocales()- Parameters:
botLocales- A list of locales for the bot.- Returns:
this
-
botLocales
Sets the value ofCfnBotMixinProps.getBotLocales()- Parameters:
botLocales- A list of locales for the bot.- Returns:
this
-
botTags
Sets the value ofCfnBotMixinProps.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 theUpdateBotoperation to update tags. To update tags, use theTagResourceoperation.- Returns:
this
-
dataPrivacy
Sets the value ofCfnBotMixinProps.getDataPrivacy()- Parameters:
dataPrivacy- By default, data stored by Amazon Lex is encrypted. TheDataPrivacystructure provides settings that determine how Amazon Lex handles special cases of securing the data for your bot.- Returns:
this
-
description
Sets the value ofCfnBotMixinProps.getDescription()- Parameters:
description- The description of the version.- Returns:
this
-
errorLogSettings
Sets the value ofCfnBotMixinProps.getErrorLogSettings()- Parameters:
errorLogSettings- the value to be set.- Returns:
this
-
errorLogSettings
@Stability(Stable) public CfnBotMixinProps.Builder errorLogSettings(CfnBotPropsMixin.ErrorLogSettingsProperty errorLogSettings) Sets the value ofCfnBotMixinProps.getErrorLogSettings()- Parameters:
errorLogSettings- the value to be set.- Returns:
this
-
idleSessionTtlInSeconds
@Stability(Stable) public CfnBotMixinProps.Builder idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnBotMixinProps.getIdleSessionTtlInSeconds()- Parameters:
idleSessionTtlInSeconds- The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot. 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 ofCfnBotMixinProps.getName()- Parameters:
name- The name of the bot locale.- Returns:
this
-
replication
Sets the value ofCfnBotMixinProps.getReplication()- Parameters:
replication- the value to be set.- Returns:
this
-
replication
@Stability(Stable) public CfnBotMixinProps.Builder replication(CfnBotPropsMixin.ReplicationProperty replication) Sets the value ofCfnBotMixinProps.getReplication()- Parameters:
replication- the value to be set.- Returns:
this
-
roleArn
Sets the value ofCfnBotMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.- Returns:
this
-
roleArn
Sets the value ofCfnBotMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.- Returns:
this
-
testBotAliasSettings
@Stability(Stable) public CfnBotMixinProps.Builder testBotAliasSettings(IResolvable testBotAliasSettings) Sets the value ofCfnBotMixinProps.getTestBotAliasSettings()- Parameters:
testBotAliasSettings- Specifies configuration settings for the alias used to test the bot. If theTestBotAliasSettingsproperty is not specified, the settings are configured with default values.- Returns:
this
-
testBotAliasSettings
@Stability(Stable) public CfnBotMixinProps.Builder testBotAliasSettings(CfnBotPropsMixin.TestBotAliasSettingsProperty testBotAliasSettings) Sets the value ofCfnBotMixinProps.getTestBotAliasSettings()- Parameters:
testBotAliasSettings- Specifies configuration settings for the alias used to test the bot. If theTestBotAliasSettingsproperty is not specified, the settings are configured with default values.- Returns:
this
-
testBotAliasTags
Sets the value ofCfnBotMixinProps.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 theUpdateAliasoperation to update tags. To update tags on the test alias, use theTagResourceoperation.- Returns:
this
-
testBotAliasTags
@Stability(Stable) public CfnBotMixinProps.Builder testBotAliasTags(List<? extends Object> testBotAliasTags) Sets the value ofCfnBotMixinProps.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 theUpdateAliasoperation to update tags. To update tags on the test alias, use theTagResourceoperation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotMixinProps>- Returns:
- a new instance of
CfnBotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-