java.lang.Object
io.github.alersrt.pod4j.openapi.model.Plugin

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class Plugin extends Object
Plugin A plugin for the Engine API
  • Field Details

  • Constructor Details

    • Plugin

      public Plugin()
  • Method Details

    • config

      public Plugin config(PluginConfig config)
    • getConfig

      @Nonnull public PluginConfig getConfig()
      Get config
      Returns:
      config
    • setConfig

      public void setConfig(PluginConfig config)
    • enabled

      public Plugin enabled(Boolean enabled)
    • getEnabled

      @Nonnull public Boolean getEnabled()
      True if the plugin is running. False if the plugin is not running, only installed.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • id

      public Plugin id(String id)
    • getId

      @Nullable public String getId()
      Id
      Returns:
      id
    • setId

      public void setId(String id)
    • name

      public Plugin name(String name)
    • getName

      @Nonnull public String getName()
      name
      Returns:
      name
    • setName

      public void setName(String name)
    • pluginReference

      public Plugin pluginReference(String pluginReference)
    • getPluginReference

      @Nullable public String getPluginReference()
      plugin remote reference used to push/pull the plugin
      Returns:
      pluginReference
    • setPluginReference

      public void setPluginReference(String pluginReference)
    • settings

      public Plugin settings(PluginSettings settings)
    • getSettings

      @Nonnull public PluginSettings getSettings()
      Get settings
      Returns:
      settings
    • setSettings

      public void setSettings(PluginSettings settings)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to Plugin
    • fromJson

      public static Plugin fromJson(String jsonString) throws IOException
      Create an instance of Plugin given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Plugin
      Throws:
      IOException - if the JSON string is invalid with respect to Plugin
    • toJson

      public String toJson()
      Convert an instance of Plugin to an JSON string
      Returns:
      JSON string