Interface UserPrompt.Builder

  • Enclosing interface:
    UserPrompt

    public static interface UserPrompt.Builder
    • Method Detail

      • getUser

        User getUser()
        Gets the user that the prompt will be for.
        Returns:
        user.
      • getCaller

        User getCaller()
        Gets the user that is constructing this prompt.
        Returns:
        caller.
      • setName

        UserPrompt.Builder setName​(java.lang.String name)
        Sets the name, or title, of the prompt.
        Parameters:
        name - name, or title, of the prompt.
        Returns:
        Builder instance.
      • setDescription

        default UserPrompt.Builder setDescription​(java.lang.String description)
        Sets the description of the prompt.
        Parameters:
        description - description of the prompt.
        Returns:
        Builder instance.
      • setDescription

        UserPrompt.Builder setDescription​(java.util.function.Consumer<TextBuilder> textBuilder)
        Sets the description of the prompt.
        Parameters:
        textBuilder - TextBuilder instance to format the description of the prompt.
        Returns:
        Builder instance.