Interface TextResponseEvent.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TextResponseEvent.Builder,TextResponseEvent>, SdkBuilder<TextResponseEvent.Builder,TextResponseEvent>, SdkPojo
All Known Subinterfaces:
DefaultTextResponseEvent.Builder
Enclosing class:
TextResponseEvent

public static interface TextResponseEvent.Builder extends SdkPojo, CopyableBuilder<TextResponseEvent.Builder,TextResponseEvent>
  • Method Details

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

      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

      TextResponseEvent.Builder messages(Message... 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.

      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

      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.

      This is a convenience method that creates an instance of the Message.Builder avoiding the need to create one manually via Message.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to messages(List<Message>).

      Parameters:
      messages - a consumer that will call methods on Message.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.