Class RepoCommit
java.lang.Object
build.cursed.genapi.forgejo.model.RepoCommit
@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 RepoCommit
extends Object
RepoCommit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor(CommitUser author) committer(CommitUser committer) booleanstatic RepoCommitCreate an instance of RepoCommit given an JSON stringGet authorGet committerGet messagegetTree()Get treegetUrl()Get urlGet verificationinthashCode()voidsetAuthor(CommitUser author) voidsetCommitter(CommitUser committer) voidsetMessage(String message) voidsetTree(CommitMeta tree) voidvoidsetVerification(PayloadCommitVerification verification) toJson()Convert an instance of RepoCommit to an JSON stringtoString()tree(CommitMeta tree) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundverification(PayloadCommitVerification verification)
-
Field Details
-
SERIALIZED_NAME_AUTHOR
- See Also:
-
SERIALIZED_NAME_COMMITTER
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_TREE
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
SERIALIZED_NAME_VERIFICATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RepoCommit
public RepoCommit()
-
-
Method Details
-
author
-
getAuthor
Get author- Returns:
- author
-
setAuthor
-
committer
-
getCommitter
Get committer- Returns:
- committer
-
setCommitter
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
tree
-
getTree
Get tree- Returns:
- tree
-
setTree
-
url
-
getUrl
Get url- Returns:
- url
-
setUrl
-
verification
-
getVerification
Get verification- Returns:
- verification
-
setVerification
-
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 RepoCommit
-
fromJson
Create an instance of RepoCommit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RepoCommit
- Throws:
IOException- if the JSON string is invalid with respect to RepoCommit
-
toJson
Convert an instance of RepoCommit to an JSON string- Returns:
- JSON string
-