Interface FollowUpPrompt.Builder

  • Method Details

    • prompt

      Prompts for information from the user.

      Parameters:
      prompt - Prompts for information from the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prompt

      Prompts for information from the user.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to prompt(Prompt).

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

      FollowUpPrompt.Builder rejectionStatement(Statement rejectionStatement)

      If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

      Parameters:
      rejectionStatement - If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rejectionStatement

      default FollowUpPrompt.Builder rejectionStatement(Consumer<Statement.Builder> rejectionStatement)

      If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rejectionStatement(Statement).

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