Class PayloadCommit
java.lang.Object
build.cursed.genapi.forgejo.model.PayloadCommit
@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 PayloadCommit
extends Object
PayloadCommit represents a commit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAddedItem(String addedItem) addModifiedItem(String modifiedItem) addRemovedItem(String removedItem) author(PayloadUser author) committer(PayloadUser committer) booleanstatic PayloadCommitCreate an instance of PayloadCommit given an JSON stringgetAdded()Get addedGet authorGet committergetId()sha1 hash of the commitGet messageGet modifiedGet removedGet timestampgetUrl()Get urlGet verificationinthashCode()voidvoidsetAuthor(PayloadUser author) voidsetCommitter(PayloadUser committer) voidvoidsetMessage(String message) voidsetModified(List<String> modified) voidsetRemoved(List<String> removed) voidsetTimestamp(OffsetDateTime timestamp) voidvoidsetVerification(PayloadCommitVerification verification) timestamp(OffsetDateTime timestamp) toJson()Convert an instance of PayloadCommit to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundverification(PayloadCommitVerification verification)
-
Field Details
-
SERIALIZED_NAME_ADDED
- See Also:
-
SERIALIZED_NAME_AUTHOR
- See Also:
-
SERIALIZED_NAME_COMMITTER
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_MODIFIED
- See Also:
-
SERIALIZED_NAME_REMOVED
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
SERIALIZED_NAME_VERIFICATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PayloadCommit
public PayloadCommit()
-
-
Method Details
-
added
-
addAddedItem
-
getAdded
Get added- Returns:
- added
-
setAdded
-
author
-
getAuthor
Get author- Returns:
- author
-
setAuthor
-
committer
-
getCommitter
Get committer- Returns:
- committer
-
setCommitter
-
id
-
getId
sha1 hash of the commit- Returns:
- id
-
setId
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
modified
-
addModifiedItem
-
getModified
Get modified- Returns:
- modified
-
setModified
-
removed
-
addRemovedItem
-
getRemoved
Get removed- Returns:
- removed
-
setRemoved
-
timestamp
-
getTimestamp
Get timestamp- Returns:
- timestamp
-
setTimestamp
-
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 PayloadCommit
-
fromJson
Create an instance of PayloadCommit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayloadCommit
- Throws:
IOException- if the JSON string is invalid with respect to PayloadCommit
-
toJson
Convert an instance of PayloadCommit to an JSON string- Returns:
- JSON string
-