Class RepoCreateReleaseAttachmentRequest
java.lang.Object
build.cursed.genapi.forgejo.model.RepoCreateReleaseAttachmentRequest
@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 RepoCreateReleaseAttachmentRequest
extends Object
RepoCreateReleaseAttachmentRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachment(File attachment) booleanexternalUrl(String externalUrl) Create an instance of RepoCreateReleaseAttachmentRequest given an JSON stringattachment to upload (this parameter is incompatible with `external_url`)url to external asset (this parameter is incompatible with `attachment`)inthashCode()voidsetAttachment(File attachment) voidsetExternalUrl(String externalUrl) toJson()Convert an instance of RepoCreateReleaseAttachmentRequest 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_ATTACHMENT
- See Also:
-
SERIALIZED_NAME_EXTERNAL_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RepoCreateReleaseAttachmentRequest
public RepoCreateReleaseAttachmentRequest()
-
-
Method Details
-
attachment
-
getAttachment
attachment to upload (this parameter is incompatible with `external_url`)- Returns:
- attachment
-
setAttachment
-
externalUrl
-
getExternalUrl
url to external asset (this parameter is incompatible with `attachment`)- Returns:
- externalUrl
-
setExternalUrl
-
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 RepoCreateReleaseAttachmentRequest
-
fromJson
Create an instance of RepoCreateReleaseAttachmentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RepoCreateReleaseAttachmentRequest
- Throws:
IOException- if the JSON string is invalid with respect to RepoCreateReleaseAttachmentRequest
-
toJson
Convert an instance of RepoCreateReleaseAttachmentRequest to an JSON string- Returns:
- JSON string
-