Interface Statement.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Statement.Builder,Statement>, SdkBuilder<Statement.Builder,Statement>, SdkPojo
Enclosing class:
Statement

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

    • messages

      Statement.Builder messages(Collection<Message> messages)

      A collection of message objects.

      Parameters:
      messages - A collection of message objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      Statement.Builder messages(Message... messages)

      A collection of message objects.

      Parameters:
      messages - A collection of message objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      Statement.Builder messages(Consumer<Message.Builder>... messages)

      A collection of message objects.

      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:
    • responseCard

      Statement.Builder responseCard(String responseCard)

      At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

      Parameters:
      responseCard - At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.