Class TextResponseEvent.BuilderImpl

    • Constructor Detail

      • BuilderImpl

        protected BuilderImpl()
    • Method Detail

      • setMessages

        public final void setMessages​(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> messages)
      • messages

        public final TextResponseEvent.Builder messages​(Collection<Message> messages)
        Description copied from interface: TextResponseEvent.Builder

        A list of messages to send to the user. 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.

        Specified by:
        messages in interface TextResponseEvent.Builder
        Parameters:
        messages - A list of messages to send to the user. 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

        @SafeVarargs
        public final TextResponseEvent.Builder messages​(Message... messages)
        Description copied from interface: TextResponseEvent.Builder

        A list of messages to send to the user. 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.

        Specified by:
        messages in interface TextResponseEvent.Builder
        Parameters:
        messages - A list of messages to send to the user. 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.
      • getEventId

        public final String getEventId()
      • setEventId

        public final void setEventId​(String eventId)
      • eventId

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