Interface IntentResultEvent.Builder

  • Method Details

    • inputMode

      IntentResultEvent.Builder inputMode(String inputMode)

      Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.

      Parameters:
      inputMode - Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • inputMode

      IntentResultEvent.Builder inputMode(InputMode inputMode)

      Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.

      Parameters:
      inputMode - Indicates whether the input to the operation was text, speech, or from a touch-tone keypad.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • interpretations

      IntentResultEvent.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 how 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 how 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

      IntentResultEvent.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 how 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 how 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

      IntentResultEvent.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 how 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:
    • sessionState

      IntentResultEvent.Builder sessionState(SessionState sessionState)
      Sets the value of the SessionState property for this object.
      Parameters:
      sessionState - The new value for the SessionState property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionState

      default IntentResultEvent.Builder sessionState(Consumer<SessionState.Builder> sessionState)
      Sets the value of the SessionState property for this object. 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

      IntentResultEvent.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

      IntentResultEvent.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.
    • eventId

      A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N , where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.

      Parameters:
      eventId - A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recognizedBotMember

      IntentResultEvent.Builder recognizedBotMember(RecognizedBotMember recognizedBotMember)

      The bot member that is processing the intent.

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

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

      The bot member that is processing the intent.

      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: