Interface IntentResultEvent.Builder

    • Method Detail

      • 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, InputMode
      • 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:
        InputMode, InputMode
      • 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).

        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:
        #interpretations(java.util.Collection)
      • 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.
      • 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

        IntentResultEvent.Builder eventId​(String 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.