Class AudioResponseEvent.BuilderImpl

    • Constructor Detail

      • BuilderImpl

        protected BuilderImpl()
    • Method Detail

      • getAudioChunk

        public final ByteBuffer getAudioChunk()
      • setAudioChunk

        public final void setAudioChunk​(ByteBuffer audioChunk)
      • getContentType

        public final String getContentType()
      • setContentType

        public final void setContentType​(String contentType)
      • contentType

        public final AudioResponseEvent.Builder contentType​(String contentType)
        Description copied from interface: AudioResponseEvent.Builder

        The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.

        Specified by:
        contentType in interface AudioResponseEvent.Builder
        Parameters:
        contentType - The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getEventId

        public final String getEventId()
      • setEventId

        public final void setEventId​(String eventId)
      • eventId

        public final AudioResponseEvent.Builder eventId​(String eventId)
        Description copied from interface: AudioResponseEvent.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 AudioResponseEvent.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.