Interface RecognizeTextRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<RecognizeTextRequest.Builder,RecognizeTextRequest>, LexRuntimeV2Request.Builder, SdkBuilder<RecognizeTextRequest.Builder,RecognizeTextRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
RecognizeTextRequest

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

    • botId

      The identifier of the bot that processes the request.

      Parameters:
      botId - The identifier of the bot that processes the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • botAliasId

      RecognizeTextRequest.Builder botAliasId(String botAliasId)

      The alias identifier in use for the bot that processes the request.

      Parameters:
      botAliasId - The alias identifier in use for the bot that processes the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • localeId

      The locale where the session is in use.

      Parameters:
      localeId - The locale where the session is in use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionId

      RecognizeTextRequest.Builder sessionId(String sessionId)

      The identifier of the user session that is having the conversation.

      Parameters:
      sessionId - The identifier of the user session that is having the conversation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • text

      The text that the user entered. Amazon Lex V2 interprets this text.

      Parameters:
      text - The text that the user entered. Amazon Lex V2 interprets this text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionState

      RecognizeTextRequest.Builder sessionState(SessionState sessionState)

      The current state of the dialog between the user and the bot.

      Parameters:
      sessionState - The current state of the dialog between the user and the bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionState

      default RecognizeTextRequest.Builder sessionState(Consumer<SessionState.Builder> sessionState)

      The current state of the dialog between the user and the bot.

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

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

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

      RecognizeTextRequest.Builder requestAttributes(Map<String,String> requestAttributes)

      Request-specific information passed between the client application and Amazon Lex V2

      The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.

      Parameters:
      requestAttributes - Request-specific information passed between the client application and Amazon Lex V2

      The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.

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

      RecognizeTextRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.