Interface ResponseSpecification.Builder

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

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

    • messageGroups

      ResponseSpecification.Builder messageGroups(Collection<MessageGroup> messageGroups)

      A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.

      Parameters:
      messageGroups - A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageGroups

      ResponseSpecification.Builder messageGroups(MessageGroup... messageGroups)

      A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.

      Parameters:
      messageGroups - A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageGroups

      A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.

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

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

      Parameters:
      messageGroups - a consumer that will call methods on MessageGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • allowInterrupt

      ResponseSpecification.Builder allowInterrupt(Boolean allowInterrupt)

      Indicates whether the user can interrupt a speech response from Amazon Lex.

      Parameters:
      allowInterrupt - Indicates whether the user can interrupt a speech response from Amazon Lex.
      Returns:
      Returns a reference to this object so that method calls can be chained together.