Class WikiCommit
java.lang.Object
build.cursed.genapi.forgejo.model.WikiCommit
@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 WikiCommit
extends Object
WikiCommit page commit/revision
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor(CommitUser author) commiter(CommitUser commiter) booleanstatic WikiCommitCreate an instance of WikiCommit given an JSON stringGet authorGet commiterGet messagegetSha()Get shainthashCode()voidsetAuthor(CommitUser author) voidsetCommiter(CommitUser commiter) voidsetMessage(String message) voidtoJson()Convert an instance of WikiCommit 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_COMMITER
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
WikiCommit
public WikiCommit()
-
-
Method Details
-
author
-
getAuthor
Get author- Returns:
- author
-
setAuthor
-
commiter
-
getCommiter
Get commiter- Returns:
- commiter
-
setCommiter
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
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 WikiCommit
-
fromJson
Create an instance of WikiCommit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WikiCommit
- Throws:
IOException- if the JSON string is invalid with respect to WikiCommit
-
toJson
Convert an instance of WikiCommit to an JSON string- Returns:
- JSON string
-