Interface StillWaitingResponseSpecification.Builder

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

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

    • messageGroups

      One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.

      Parameters:
      messageGroups - One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageGroups

      One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.

      Parameters:
      messageGroups - One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageGroups

      One or more message groups, each containing one or more messages, that define the prompts that Amazon Lex sends to the user.

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

      StillWaitingResponseSpecification.Builder frequencyInSeconds(Integer frequencyInSeconds)

      How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.

      Parameters:
      frequencyInSeconds - How often a message should be sent to the user. Minimum of 1 second, maximum of 5 minutes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeoutInSeconds

      StillWaitingResponseSpecification.Builder timeoutInSeconds(Integer timeoutInSeconds)

      If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.

      Parameters:
      timeoutInSeconds - If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowInterrupt

      StillWaitingResponseSpecification.Builder allowInterrupt(Boolean allowInterrupt)

      Indicates that the user can interrupt the response by speaking while the message is being played.

      Parameters:
      allowInterrupt - Indicates that the user can interrupt the response by speaking while the message is being played.
      Returns:
      Returns a reference to this object so that method calls can be chained together.