Class GeneralAPISettings
java.lang.Object
build.cursed.genapi.forgejo.model.GeneralAPISettings
@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 GeneralAPISettings
extends Object
GeneralAPISettings contains global api settings exposed by it
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultGitTreesPerPage(Long defaultGitTreesPerPage) defaultMaxBlobSize(Long defaultMaxBlobSize) defaultPagingNum(Long defaultPagingNum) booleanstatic GeneralAPISettingsCreate an instance of GeneralAPISettings given an JSON stringGet defaultGitTreesPerPageGet defaultMaxBlobSizeGet defaultPagingNumGet maxResponseItemsinthashCode()maxResponseItems(Long maxResponseItems) voidsetDefaultGitTreesPerPage(Long defaultGitTreesPerPage) voidsetDefaultMaxBlobSize(Long defaultMaxBlobSize) voidsetDefaultPagingNum(Long defaultPagingNum) voidsetMaxResponseItems(Long maxResponseItems) toJson()Convert an instance of GeneralAPISettings 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_DEFAULT_GIT_TREES_PER_PAGE
- See Also:
-
SERIALIZED_NAME_DEFAULT_MAX_BLOB_SIZE
- See Also:
-
SERIALIZED_NAME_DEFAULT_PAGING_NUM
- See Also:
-
SERIALIZED_NAME_MAX_RESPONSE_ITEMS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GeneralAPISettings
public GeneralAPISettings()
-
-
Method Details
-
defaultGitTreesPerPage
-
getDefaultGitTreesPerPage
Get defaultGitTreesPerPage- Returns:
- defaultGitTreesPerPage
-
setDefaultGitTreesPerPage
-
defaultMaxBlobSize
-
getDefaultMaxBlobSize
Get defaultMaxBlobSize- Returns:
- defaultMaxBlobSize
-
setDefaultMaxBlobSize
-
defaultPagingNum
-
getDefaultPagingNum
Get defaultPagingNum- Returns:
- defaultPagingNum
-
setDefaultPagingNum
-
maxResponseItems
-
getMaxResponseItems
Get maxResponseItems- Returns:
- maxResponseItems
-
setMaxResponseItems
-
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 GeneralAPISettings
-
fromJson
Create an instance of GeneralAPISettings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GeneralAPISettings
- Throws:
IOException- if the JSON string is invalid with respect to GeneralAPISettings
-
toJson
Convert an instance of GeneralAPISettings to an JSON string- Returns:
- JSON string
-