Class GeneralAttachmentSettings
java.lang.Object
build.cursed.genapi.forgejo.model.GeneralAttachmentSettings
@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 GeneralAttachmentSettings
extends Object
GeneralAttachmentSettings contains global Attachment settings exposed by API
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedTypes(String allowedTypes) booleanstatic GeneralAttachmentSettingsCreate an instance of GeneralAttachmentSettings given an JSON stringGet allowedTypesGet enabledGet maxFilesGet maxSizeinthashCode()voidsetAllowedTypes(String allowedTypes) voidsetEnabled(Boolean enabled) voidsetMaxFiles(Long maxFiles) voidsetMaxSize(Long maxSize) toJson()Convert an instance of GeneralAttachmentSettings 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_ALLOWED_TYPES
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_MAX_FILES
- See Also:
-
SERIALIZED_NAME_MAX_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GeneralAttachmentSettings
public GeneralAttachmentSettings()
-
-
Method Details
-
allowedTypes
-
getAllowedTypes
Get allowedTypes- Returns:
- allowedTypes
-
setAllowedTypes
-
enabled
-
getEnabled
Get enabled- Returns:
- enabled
-
setEnabled
-
maxFiles
-
getMaxFiles
Get maxFiles- Returns:
- maxFiles
-
setMaxFiles
-
maxSize
-
getMaxSize
Get maxSize- Returns:
- maxSize
-
setMaxSize
-
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 GeneralAttachmentSettings
-
fromJson
Create an instance of GeneralAttachmentSettings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GeneralAttachmentSettings
- Throws:
IOException- if the JSON string is invalid with respect to GeneralAttachmentSettings
-
toJson
Convert an instance of GeneralAttachmentSettings to an JSON string- Returns:
- JSON string
-