Class CreatePullReviewComment
java.lang.Object
build.cursed.genapi.forgejo.model.CreatePullReviewComment
@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 CreatePullReviewComment
extends Object
CreatePullReviewComment represent a review comment for creation api
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreatePullReviewCommentCreate an instance of CreatePullReviewComment given an JSON stringgetBody()Get bodyif comment to new file line or 0if comment to old file line or 0getPath()the tree pathinthashCode()newPosition(Long newPosition) oldPosition(Long oldPosition) voidvoidsetNewPosition(Long newPosition) voidsetOldPosition(Long oldPosition) voidtoJson()Convert an instance of CreatePullReviewComment 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_BODY
- See Also:
-
SERIALIZED_NAME_NEW_POSITION
- See Also:
-
SERIALIZED_NAME_OLD_POSITION
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreatePullReviewComment
public CreatePullReviewComment()
-
-
Method Details
-
body
-
getBody
Get body- Returns:
- body
-
setBody
-
newPosition
-
getNewPosition
if comment to new file line or 0- Returns:
- newPosition
-
setNewPosition
-
oldPosition
-
getOldPosition
if comment to old file line or 0- Returns:
- oldPosition
-
setOldPosition
-
path
-
getPath
the tree path- Returns:
- path
-
setPath
-
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 CreatePullReviewComment
-
fromJson
Create an instance of CreatePullReviewComment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePullReviewComment
- Throws:
IOException- if the JSON string is invalid with respect to CreatePullReviewComment
-
toJson
Convert an instance of CreatePullReviewComment to an JSON string- Returns:
- JSON string
-