Interface LexConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LexConfiguration.Builder,LexConfiguration>, SdkBuilder<LexConfiguration.Builder,LexConfiguration>, SdkPojo
Enclosing class:
LexConfiguration

public static interface LexConfiguration.Builder extends SdkPojo, CopyableBuilder<LexConfiguration.Builder,LexConfiguration>
  • Method Details

    • respondsTo

      LexConfiguration.Builder respondsTo(String respondsTo)

      Deprecated. Use InvokedBy instead.

      Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.

      Parameters:
      respondsTo -

      Deprecated. Use InvokedBy instead.

      Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • respondsTo

      LexConfiguration.Builder respondsTo(RespondsTo respondsTo)

      Deprecated. Use InvokedBy instead.

      Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.

      Parameters:
      respondsTo -

      Deprecated. Use InvokedBy instead.

      Determines whether the Amazon Lex V2 bot responds to all standard messages. Control messages are not supported.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • invokedBy

      LexConfiguration.Builder invokedBy(InvokedBy invokedBy)

      Specifies the type of message that triggers a bot.

      Parameters:
      invokedBy - Specifies the type of message that triggers a bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • invokedBy

      default LexConfiguration.Builder invokedBy(Consumer<InvokedBy.Builder> invokedBy)

      Specifies the type of message that triggers a bot.

      This is a convenience method that creates an instance of the InvokedBy.Builder avoiding the need to create one manually via InvokedBy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to invokedBy(InvokedBy).

      Parameters:
      invokedBy - a consumer that will call methods on InvokedBy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lexBotAliasArn

      LexConfiguration.Builder lexBotAliasArn(String lexBotAliasArn)

      The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS

      Parameters:
      lexBotAliasArn - The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format: arn:aws:lex:REGION:ACCOUNT:bot-alias/MYBOTID/MYBOTALIAS
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • localeId

      LexConfiguration.Builder localeId(String localeId)

      Identifies the Amazon Lex V2 bot's language and locale. The string must match one of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages in the Amazon Lex V2 Developer Guide.

      Parameters:
      localeId - Identifies the Amazon Lex V2 bot's language and locale. The string must match one of the supported locales in Amazon Lex V2. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages in the Amazon Lex V2 Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • welcomeIntent

      LexConfiguration.Builder welcomeIntent(String welcomeIntent)

      The name of the welcome intent configured in the Amazon Lex V2 bot.

      Parameters:
      welcomeIntent - The name of the welcome intent configured in the Amazon Lex V2 bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.