Class QuotaUsedAttachment

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class QuotaUsedAttachment extends Object
QuotaUsedAttachment represents an attachment counting towards a user's quota
  • Field Details

  • Constructor Details

    • QuotaUsedAttachment

      public QuotaUsedAttachment()
  • Method Details

    • apiUrl

      public QuotaUsedAttachment apiUrl(@Nullable String apiUrl)
    • getApiUrl

      @Nullable public String getApiUrl()
      API URL for the attachment
      Returns:
      apiUrl
    • setApiUrl

      public void setApiUrl(@Nullable String apiUrl)
    • containedIn

      public QuotaUsedAttachment containedIn(@Nullable QuotaUsedAttachmentContainedIn containedIn)
    • getContainedIn

      @Nullable public QuotaUsedAttachmentContainedIn getContainedIn()
      Get containedIn
      Returns:
      containedIn
    • setContainedIn

      public void setContainedIn(@Nullable QuotaUsedAttachmentContainedIn containedIn)
    • name

      public QuotaUsedAttachment name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • size

      public QuotaUsedAttachment size(@Nullable Long size)
    • getSize

      @Nullable public Long getSize()
      Size of the attachment (in bytes)
      Returns:
      size
    • setSize

      public void setSize(@Nullable Long size)
    • 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 QuotaUsedAttachment
    • fromJson

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

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