Class QuotaUsedPackage

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

@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 QuotaUsedPackage extends Object
QuotaUsedPackage represents a package counting towards a user's quota
  • Field Details

  • Constructor Details

    • QuotaUsedPackage

      public QuotaUsedPackage()
  • Method Details

    • htmlUrl

      public QuotaUsedPackage htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

      @Nullable public String getHtmlUrl()
      HTML URL to the package version
      Returns:
      htmlUrl
    • setHtmlUrl

      public void setHtmlUrl(@Nullable String htmlUrl)
    • name

      public QuotaUsedPackage name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • size

      public QuotaUsedPackage size(@Nullable Long size)
    • getSize

      @Nullable public Long getSize()
      Size of the package version
      Returns:
      size
    • setSize

      public void setSize(@Nullable Long size)
    • type

      public QuotaUsedPackage type(@Nullable String type)
    • getType

      @Nullable public String getType()
      Type of the package
      Returns:
      type
    • setType

      public void setType(@Nullable String type)
    • version

      public QuotaUsedPackage version(@Nullable String version)
    • getVersion

      @Nullable public String getVersion()
      Version of the package
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable String version)
    • 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 QuotaUsedPackage
    • fromJson

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

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