Class EditAttachmentOptions
java.lang.Object
build.cursed.genapi.forgejo.model.EditAttachmentOptions
@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 EditAttachmentOptions
extends Object
EditAttachmentOptions options for editing attachments
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowserDownloadUrl(String browserDownloadUrl) booleanstatic EditAttachmentOptionsCreate an instance of EditAttachmentOptions given an JSON string(Can only be set if existing attachment is of external type)getName()Get nameinthashCode()voidsetBrowserDownloadUrl(String browserDownloadUrl) voidtoJson()Convert an instance of EditAttachmentOptions 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_BROWSER_DOWNLOAD_URL
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EditAttachmentOptions
public EditAttachmentOptions()
-
-
Method Details
-
browserDownloadUrl
-
getBrowserDownloadUrl
(Can only be set if existing attachment is of external type)- Returns:
- browserDownloadUrl
-
setBrowserDownloadUrl
-
name
-
getName
Get name- Returns:
- name
-
setName
-
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 EditAttachmentOptions
-
fromJson
Create an instance of EditAttachmentOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EditAttachmentOptions
- Throws:
IOException- if the JSON string is invalid with respect to EditAttachmentOptions
-
toJson
Convert an instance of EditAttachmentOptions to an JSON string- Returns:
- JSON string
-