Class ChangedFile
java.lang.Object
build.cursed.genapi.forgejo.model.ChangedFile
@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 ChangedFile
extends Object
ChangedFile store information about files affected by the pull request
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontentsUrl(String contentsUrl) booleanstatic ChangedFileCreate an instance of ChangedFile given an JSON stringGet additionsGet changesGet contentsUrlGet deletionsGet filenameGet htmlUrlGet previousFilenameGet rawUrlGet statusinthashCode()previousFilename(String previousFilename) voidsetAdditions(Long additions) voidsetChanges(Long changes) voidsetContentsUrl(String contentsUrl) voidsetDeletions(Long deletions) voidsetFilename(String filename) voidsetHtmlUrl(String htmlUrl) voidsetPreviousFilename(String previousFilename) voidvoidtoJson()Convert an instance of ChangedFile 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_ADDITIONS
- See Also:
-
SERIALIZED_NAME_CHANGES
- See Also:
-
SERIALIZED_NAME_CONTENTS_URL
- See Also:
-
SERIALIZED_NAME_DELETIONS
- See Also:
-
SERIALIZED_NAME_FILENAME
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_PREVIOUS_FILENAME
- See Also:
-
SERIALIZED_NAME_RAW_URL
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ChangedFile
public ChangedFile()
-
-
Method Details
-
additions
-
getAdditions
Get additions- Returns:
- additions
-
setAdditions
-
changes
-
getChanges
Get changes- Returns:
- changes
-
setChanges
-
contentsUrl
-
getContentsUrl
Get contentsUrl- Returns:
- contentsUrl
-
setContentsUrl
-
deletions
-
getDeletions
Get deletions- Returns:
- deletions
-
setDeletions
-
filename
-
getFilename
Get filename- Returns:
- filename
-
setFilename
-
htmlUrl
-
getHtmlUrl
Get htmlUrl- Returns:
- htmlUrl
-
setHtmlUrl
-
previousFilename
-
getPreviousFilename
Get previousFilename- Returns:
- previousFilename
-
setPreviousFilename
-
rawUrl
-
getRawUrl
Get rawUrl- Returns:
- rawUrl
-
setRawUrl
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
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 ChangedFile
-
fromJson
Create an instance of ChangedFile given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ChangedFile
- Throws:
IOException- if the JSON string is invalid with respect to ChangedFile
-
toJson
Convert an instance of ChangedFile to an JSON string- Returns:
- JSON string
-