Interface PromptSpecification.Builder

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

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

    • messageGroups

      PromptSpecification.Builder messageGroups(Collection<MessageGroup> messageGroups)

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

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

      PromptSpecification.Builder messageGroups(MessageGroup... messageGroups)

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

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

      PromptSpecification.Builder messageGroups(Consumer<MessageGroup.Builder>... messageGroups)

      A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message 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:
    • maxRetries

      PromptSpecification.Builder maxRetries(Integer maxRetries)

      The maximum number of times the bot tries to elicit a response from the user using this prompt.

      Parameters:
      maxRetries - The maximum number of times the bot tries to elicit a response from the user using this prompt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowInterrupt

      PromptSpecification.Builder allowInterrupt(Boolean allowInterrupt)

      Indicates whether the user can interrupt a speech prompt from the bot.

      Parameters:
      allowInterrupt - Indicates whether the user can interrupt a speech prompt from the bot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messageSelectionStrategy

      PromptSpecification.Builder messageSelectionStrategy(String messageSelectionStrategy)

      Indicates how a message is selected from a message group among retries.

      Parameters:
      messageSelectionStrategy - Indicates how a message is selected from a message group among retries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • messageSelectionStrategy

      PromptSpecification.Builder messageSelectionStrategy(MessageSelectionStrategy messageSelectionStrategy)

      Indicates how a message is selected from a message group among retries.

      Parameters:
      messageSelectionStrategy - Indicates how a message is selected from a message group among retries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • promptAttemptsSpecificationWithStrings

      PromptSpecification.Builder promptAttemptsSpecificationWithStrings(Map<String,PromptAttemptSpecification> promptAttemptsSpecification)

      Specifies the advanced settings on each attempt of the prompt.

      Parameters:
      promptAttemptsSpecification - Specifies the advanced settings on each attempt of the prompt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • promptAttemptsSpecification

      PromptSpecification.Builder promptAttemptsSpecification(Map<PromptAttempt,PromptAttemptSpecification> promptAttemptsSpecification)

      Specifies the advanced settings on each attempt of the prompt.

      Parameters:
      promptAttemptsSpecification - Specifies the advanced settings on each attempt of the prompt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.