Class FileCommitResponse
java.lang.Object
build.cursed.genapi.forgejo.model.FileCommitResponse
@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 FileCommitResponse
extends Object
FileCommitResponse
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParentsItem(CommitMeta parentsItem) author(CommitUser author) committer(CommitUser committer) created(OffsetDateTime created) booleanstatic FileCommitResponseCreate an instance of FileCommitResponse given an JSON stringGet authorGet committerGet createdGet htmlUrlGet messageGet parentsgetSha()Get shagetTree()Get treegetUrl()Get urlinthashCode()parents(List<CommitMeta> parents) voidsetAuthor(CommitUser author) voidsetCommitter(CommitUser committer) voidsetCreated(OffsetDateTime created) voidsetHtmlUrl(String htmlUrl) voidsetMessage(String message) voidsetParents(List<CommitMeta> parents) voidvoidsetTree(CommitMeta tree) voidtoJson()Convert an instance of FileCommitResponse to an JSON stringtoString()tree(CommitMeta tree) 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_COMMITTER
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_PARENTS
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
SERIALIZED_NAME_TREE
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FileCommitResponse
public FileCommitResponse()
-
-
Method Details
-
author
-
getAuthor
Get author- Returns:
- author
-
setAuthor
-
committer
-
getCommitter
Get committer- Returns:
- committer
-
setCommitter
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
htmlUrl
-
getHtmlUrl
Get htmlUrl- Returns:
- htmlUrl
-
setHtmlUrl
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
parents
-
addParentsItem
-
getParents
Get parents- Returns:
- parents
-
setParents
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
tree
-
getTree
Get tree- Returns:
- tree
-
setTree
-
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 FileCommitResponse
-
fromJson
Create an instance of FileCommitResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FileCommitResponse
- Throws:
IOException- if the JSON string is invalid with respect to FileCommitResponse
-
toJson
Convert an instance of FileCommitResponse to an JSON string- Returns:
- JSON string
-