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 Details

    • Builder

      public Builder()
  • Method Details

    • dataPrivacy

      @Stability(Stable) public CfnBotProps.Builder dataPrivacy(Object dataPrivacy)
      Parameters:
      dataPrivacy - By default, data stored by Amazon Lex is encrypted. This parameter is required. The DataPrivacy 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)
      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

      @Stability(Stable) public CfnBotProps.Builder name(String name)
      Sets the value of CfnBotProps.getName()
      Parameters:
      name - The name of the bot locale. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnBotProps.Builder roleArn(String roleArn)
      Sets the value of CfnBotProps.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

      @Stability(Stable) public CfnBotProps.Builder autoBuildBotLocales(Boolean autoBuildBotLocales)
      Parameters:
      autoBuildBotLocales - Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.
      Returns:
      this
    • autoBuildBotLocales

      @Stability(Stable) public CfnBotProps.Builder autoBuildBotLocales(IResolvable autoBuildBotLocales)
      Parameters:
      autoBuildBotLocales - Indicates whether Amazon Lex V2 should automatically build the locales for the bot after a change.
      Returns:
      this
    • botFileS3Location

      @Stability(Stable) public CfnBotProps.Builder botFileS3Location(IResolvable botFileS3Location)
      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)
      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

      @Stability(Stable) public CfnBotProps.Builder botLocales(IResolvable botLocales)
      Sets the value of CfnBotProps.getBotLocales()
      Parameters:
      botLocales - A list of locales for the bot.
      Returns:
      this
    • botLocales

      @Stability(Stable) public CfnBotProps.Builder botLocales(List<? extends Object> botLocales)
      Sets the value of CfnBotProps.getBotLocales()
      Parameters:
      botLocales - A list of locales for the bot.
      Returns:
      this
    • botTags

      @Stability(Stable) public CfnBotProps.Builder botTags(IResolvable botTags)
      Sets the value of CfnBotProps.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 the UpdateBot operation to update tags. To update tags, use the TagResource operation.
      Returns:
      this
    • botTags

      @Stability(Stable) public CfnBotProps.Builder botTags(List<? extends Object> botTags)
      Sets the value of CfnBotProps.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 the UpdateBot operation to update tags. To update tags, use the TagResource operation.
      Returns:
      this
    • description

      @Stability(Stable) public CfnBotProps.Builder description(String description)
      Parameters:
      description - The description of the version.
      Returns:
      this
    • testBotAliasSettings

      @Stability(Stable) public CfnBotProps.Builder testBotAliasSettings(IResolvable testBotAliasSettings)
      Parameters:
      testBotAliasSettings - Specifies configuration settings for the alias used to test the bot. If the TestBotAliasSettings property is not specified, the settings are configured with default values.
      Returns:
      this
    • testBotAliasSettings

      @Stability(Stable) public CfnBotProps.Builder testBotAliasSettings(CfnBot.TestBotAliasSettingsProperty testBotAliasSettings)
      Parameters:
      testBotAliasSettings - Specifies configuration settings for the alias used to test the bot. If the TestBotAliasSettings property is not specified, the settings are configured with default values.
      Returns:
      this
    • testBotAliasTags

      @Stability(Stable) public CfnBotProps.Builder testBotAliasTags(IResolvable testBotAliasTags)
      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 the UpdateAlias operation to update tags. To update tags on the test alias, use the TagResource operation.
      Returns:
      this
    • testBotAliasTags

      @Stability(Stable) public CfnBotProps.Builder testBotAliasTags(List<? extends Object> testBotAliasTags)
      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 the UpdateAlias operation to update tags. To update tags on the test alias, use the TagResource operation.
      Returns:
      this
    • build

      @Stability(Stable) public CfnBotProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnBotProps>
      Returns:
      a new instance of CfnBotProps
      Throws:
      NullPointerException - if any required attribute was not provided