Class IntentResultEvent.BuilderImpl

    • Constructor Detail

      • BuilderImpl

        protected BuilderImpl()
    • Method Detail

      • getInputMode

        public final String getInputMode()
      • setInputMode

        public final void setInputMode​(String inputMode)
      • inputMode

        public final IntentResultEvent.Builder inputMode​(String inputMode)
        Description copied from interface: IntentResultEvent.Builder

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

        Specified by:
        inputMode in interface IntentResultEvent.Builder
        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
      • setInterpretations

        public final void setInterpretations​(Collection<software.amazon.awssdk.services.lexruntimev2.model.Interpretation.BuilderImpl> interpretations)
      • interpretations

        public final IntentResultEvent.Builder interpretations​(Collection<Interpretation> interpretations)
        Description copied from interface: IntentResultEvent.Builder

        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.

        Specified by:
        interpretations in interface IntentResultEvent.Builder
        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

        @SafeVarargs
        public final IntentResultEvent.Builder interpretations​(Interpretation... interpretations)
        Description copied from interface: IntentResultEvent.Builder

        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.

        Specified by:
        interpretations in interface IntentResultEvent.Builder
        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.
      • setSessionState

        public final void setSessionState​(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState)
      • getRequestAttributes

        public final Map<String,​String> getRequestAttributes()
      • setRequestAttributes

        public final void setRequestAttributes​(Map<String,​String> requestAttributes)
      • getSessionId

        public final String getSessionId()
      • setSessionId

        public final void setSessionId​(String sessionId)
      • getEventId

        public final String getEventId()
      • setEventId

        public final void setEventId​(String eventId)
      • eventId

        public final IntentResultEvent.Builder eventId​(String eventId)
        Description copied from interface: IntentResultEvent.Builder

        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.

        Specified by:
        eventId in interface IntentResultEvent.Builder
        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.
      • setRecognizedBotMember

        public final void setRecognizedBotMember​(software.amazon.awssdk.services.lexruntimev2.model.RecognizedBotMember.BuilderImpl recognizedBotMember)