Class ActionVariable

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

@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 ActionVariable extends Object
ActionVariable return value of the query API
  • Field Details

  • Constructor Details

    • ActionVariable

      public ActionVariable()
  • Method Details

    • data

      public ActionVariable data(@Nullable String data)
    • getData

      @Nullable public String getData()
      the value of the variable
      Returns:
      data
    • setData

      public void setData(@Nullable String data)
    • name

      public ActionVariable name(@Nullable String name)
    • getName

      @Nullable public String getName()
      the name of the variable
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • ownerId

      public ActionVariable ownerId(@Nullable Long ownerId)
    • getOwnerId

      @Nullable public Long getOwnerId()
      the owner to which the variable belongs
      Returns:
      ownerId
    • setOwnerId

      public void setOwnerId(@Nullable Long ownerId)
    • repoId

      public ActionVariable repoId(@Nullable Long repoId)
    • getRepoId

      @Nullable public Long getRepoId()
      the repository to which the variable belongs
      Returns:
      repoId
    • setRepoId

      public void setRepoId(@Nullable Long repoId)
    • 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 ActionVariable
    • fromJson

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

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