Class Commit
java.lang.Object
build.cursed.genapi.forgejo.model.Commit
@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 Commit
extends Object
Commit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFilesItem(CommitAffectedFiles filesItem) addParentsItem(CommitMeta parentsItem) commit(RepoCommit commit) created(OffsetDateTime created) booleanfiles(List<CommitAffectedFiles> files) static CommitCreate an instance of Commit given an JSON stringGet authorGet commitGet committerGet createdgetFiles()Get filesGet htmlUrlGet parentsgetSha()Get shagetStats()Get statsgetUrl()Get urlinthashCode()parents(List<CommitMeta> parents) voidvoidsetCommit(RepoCommit commit) voidsetCommitter(User committer) voidsetCreated(OffsetDateTime created) voidsetFiles(List<CommitAffectedFiles> files) voidsetHtmlUrl(String htmlUrl) voidsetParents(List<CommitMeta> parents) voidvoidsetStats(CommitStats stats) voidstats(CommitStats stats) toJson()Convert an instance of Commit 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_AUTHOR
- See Also:
-
SERIALIZED_NAME_COMMIT
- See Also:
-
SERIALIZED_NAME_COMMITTER
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_FILES
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_PARENTS
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
SERIALIZED_NAME_STATS
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Commit
public Commit()
-
-
Method Details
-
author
-
getAuthor
Get author- Returns:
- author
-
setAuthor
-
commit
-
getCommit
Get commit- Returns:
- commit
-
setCommit
-
committer
-
getCommitter
Get committer- Returns:
- committer
-
setCommitter
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
files
-
addFilesItem
-
getFiles
Get files- Returns:
- files
-
setFiles
-
htmlUrl
-
getHtmlUrl
Get htmlUrl- Returns:
- htmlUrl
-
setHtmlUrl
-
parents
-
addParentsItem
-
getParents
Get parents- Returns:
- parents
-
setParents
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
stats
-
getStats
Get stats- Returns:
- stats
-
setStats
-
url
-
getUrl
Get url- Returns:
- url
-
setUrl
-
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 Commit
-
fromJson
Create an instance of Commit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Commit
- Throws:
IOException- if the JSON string is invalid with respect to Commit
-
toJson
Convert an instance of Commit to an JSON string- Returns:
- JSON string
-