Class Attachment
java.lang.Object
build.cursed.genapi.forgejo.model.Attachment
@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 Attachment
extends Object
Attachment a generic attachment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowserDownloadUrl(String browserDownloadUrl) createdAt(OffsetDateTime createdAt) downloadCount(Long downloadCount) booleanstatic AttachmentCreate an instance of Attachment given an JSON stringGet browserDownloadUrlGet createdAtGet downloadCountgetId()Get idgetName()Get namegetSize()Get sizegetType()Get typegetUuid()Get uuidinthashCode()voidsetBrowserDownloadUrl(String browserDownloadUrl) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDownloadCount(Long downloadCount) voidvoidvoidvoidsetType(Attachment.TypeEnum type) voidtoJson()Convert an instance of Attachment to an JSON stringtoString()type(Attachment.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BROWSER_DOWNLOAD_URL
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DOWNLOAD_COUNT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UUID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
browserDownloadUrl
-
getBrowserDownloadUrl
Get browserDownloadUrl- Returns:
- browserDownloadUrl
-
setBrowserDownloadUrl
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
downloadCount
-
getDownloadCount
Get downloadCount- Returns:
- downloadCount
-
setDownloadCount
-
id
-
getId
Get id- Returns:
- id
-
setId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
type
-
getType
Get type- Returns:
- type
-
setType
-
uuid
-
getUuid
Get uuid- Returns:
- uuid
-
setUuid
-
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 Attachment
-
fromJson
Create an instance of Attachment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Attachment
- Throws:
IOException- if the JSON string is invalid with respect to Attachment
-
toJson
Convert an instance of Attachment to an JSON string- Returns:
- JSON string
-