Class SyncForkInfo
java.lang.Object
build.cursed.genapi.forgejo.model.SyncForkInfo
@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 SyncForkInfo
extends Object
SyncForkInfo information about syncing a fork
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseCommit(String baseCommit) commitsBehind(Long commitsBehind) booleanforkCommit(String forkCommit) static SyncForkInfoCreate an instance of SyncForkInfo given an JSON stringGet allowedGet baseCommitGet commitsBehindGet forkCommitinthashCode()voidsetAllowed(Boolean allowed) voidsetBaseCommit(String baseCommit) voidsetCommitsBehind(Long commitsBehind) voidsetForkCommit(String forkCommit) toJson()Convert an instance of SyncForkInfo 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
- See Also:
-
SERIALIZED_NAME_BASE_COMMIT
- See Also:
-
SERIALIZED_NAME_COMMITS_BEHIND
- See Also:
-
SERIALIZED_NAME_FORK_COMMIT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SyncForkInfo
public SyncForkInfo()
-
-
Method Details
-
allowed
-
getAllowed
Get allowed- Returns:
- allowed
-
setAllowed
-
baseCommit
-
getBaseCommit
Get baseCommit- Returns:
- baseCommit
-
setBaseCommit
-
commitsBehind
-
getCommitsBehind
Get commitsBehind- Returns:
- commitsBehind
-
setCommitsBehind
-
forkCommit
-
getForkCommit
Get forkCommit- Returns:
- forkCommit
-
setForkCommit
-
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 SyncForkInfo
-
fromJson
Create an instance of SyncForkInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SyncForkInfo
- Throws:
IOException- if the JSON string is invalid with respect to SyncForkInfo
-
toJson
Convert an instance of SyncForkInfo to an JSON string- Returns:
- JSON string
-