Class QuotaUsedAttachment
java.lang.Object
build.cursed.genapi.forgejo.model.QuotaUsedAttachment
@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 QuotaUsedAttachment
extends Object
QuotaUsedAttachment represents an attachment counting towards a user's quota
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainedIn(QuotaUsedAttachmentContainedIn containedIn) booleanstatic QuotaUsedAttachmentCreate an instance of QuotaUsedAttachment given an JSON stringAPI URL for the attachmentGet containedIngetName()Filename of the attachmentgetSize()Size of the attachment (in bytes)inthashCode()voidvoidsetContainedIn(QuotaUsedAttachmentContainedIn containedIn) voidvoidtoJson()Convert an instance of QuotaUsedAttachment to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_URL
- See Also:
-
SERIALIZED_NAME_CONTAINED_IN
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuotaUsedAttachment
public QuotaUsedAttachment()
-
-
Method Details
-
apiUrl
-
getApiUrl
API URL for the attachment- Returns:
- apiUrl
-
setApiUrl
-
containedIn
-
getContainedIn
Get containedIn- Returns:
- containedIn
-
setContainedIn
-
name
-
getName
Filename of the attachment- Returns:
- name
-
setName
-
size
-
getSize
Size of the attachment (in bytes)- Returns:
- size
-
setSize
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of QuotaUsedAttachment to an JSON string- Returns:
- JSON string
-