Interface RecognizeTextResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<RecognizeTextResponse.Builder,RecognizeTextResponse>, LexRuntimeV2Response.Builder, SdkBuilder<RecognizeTextResponse.Builder,RecognizeTextResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
RecognizeTextResponse

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

    • messages

      A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.

      Parameters:
      messages - A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      RecognizeTextResponse.Builder messages(Message... messages)

      A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.

      Parameters:
      messages - A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to messages(List<Message>).

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

      RecognizeTextResponse.Builder sessionState(SessionState sessionState)

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

      Use this to determine the progress of the conversation and what the next action may be.

      Parameters:
      sessionState - Represents the current state of the dialog between the user and the bot.

      Use this to determine the progress of the conversation and what the next action may be.

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

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

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

      Use this to determine the progress of the conversation and what the next action may be.

      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:
    • interpretations

      RecognizeTextResponse.Builder interpretations(Collection<Interpretation> interpretations)

      A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

      Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

      Parameters:
      interpretations - A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

      Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

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

      RecognizeTextResponse.Builder interpretations(Interpretation... interpretations)

      A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

      Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

      Parameters:
      interpretations - A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

      Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

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

      RecognizeTextResponse.Builder interpretations(Consumer<Interpretation.Builder>... interpretations)

      A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.

      Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to interpretations(List<Interpretation>).

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

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

      The attributes sent in the request.

      Parameters:
      requestAttributes - The attributes sent in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionId

      RecognizeTextResponse.Builder sessionId(String sessionId)

      The identifier of the session in use.

      Parameters:
      sessionId - The identifier of the session in use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recognizedBotMember

      RecognizeTextResponse.Builder recognizedBotMember(RecognizedBotMember recognizedBotMember)

      The bot member that recognized the text.

      Parameters:
      recognizedBotMember - The bot member that recognized the text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recognizedBotMember

      default RecognizeTextResponse.Builder recognizedBotMember(Consumer<RecognizedBotMember.Builder> recognizedBotMember)

      The bot member that recognized the text.

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

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

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