Interface PresettablePrompt<T>

All Known Subinterfaces:
ConfigurablePromptOperation, ConfigurablePromptOption, ConfigurableSystemPrompt

@Experimental public interface PresettablePrompt<T>
Configurable entry of a prompt configuration.
Since:
5.2.241209
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the preset definition of the configurable prompt.
    Returns information about the preset classification of this operation.
    void
    Request to restore the settings configured in the original preset.
  • Method Details

    • getPreset

      @Nullable T getPreset()
      Returns the preset definition of the configurable prompt.
      Returns:
      The preset.
      Since:
      5.2.241209
    • getPresetMode

      @NotNull @NotNull PromptPresetMode getPresetMode()
      Returns information about the preset classification of this operation.
      Returns:
      The preset mode.
      Since:
      5.2.241209.
    • restorePreset

      void restorePreset()
      Request to restore the settings configured in the original preset.
      Throws:
      UnsupportedOperationException - If the prompt is not based on a preset.
      Since:
      5.2.241209