Class RegisterRunnerOptions

java.lang.Object
build.cursed.genapi.forgejo.model.RegisterRunnerOptions

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class RegisterRunnerOptions extends Object
RegisterRunnerOptions
  • Field Details

  • Constructor Details

    • RegisterRunnerOptions

      public RegisterRunnerOptions()
  • Method Details

    • description

      public RegisterRunnerOptions description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the runner to register.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • ephemeral

      public RegisterRunnerOptions ephemeral(@Nullable Boolean ephemeral)
    • getEphemeral

      @Nullable public Boolean getEphemeral()
      Register as ephemeral runner https://forgejo.org/docs/latest/admin/actions/security/#ephemeral-runner
      Returns:
      ephemeral
    • setEphemeral

      public void setEphemeral(@Nullable Boolean ephemeral)
    • name

      public RegisterRunnerOptions name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Name of the runner to register. The name of the runner does not have to be unique.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • 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 RegisterRunnerOptions
    • fromJson

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

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