Class CreatePullReviewOptions
java.lang.Object
build.cursed.genapi.forgejo.model.CreatePullReviewOptions
@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 CreatePullReviewOptions
extends Object
CreatePullReviewOptions are options to create a pull review
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCommentsItem(CreatePullReviewComment commentsItem) comments(List<CreatePullReviewComment> comments) booleanstatic CreatePullReviewOptionsCreate an instance of CreatePullReviewOptions given an JSON stringgetBody()Get bodyGet commentsGet commitIdgetEvent()ReviewStateType review state typeinthashCode()voidvoidsetComments(List<CreatePullReviewComment> comments) voidsetCommitId(String commitId) voidtoJson()Convert an instance of CreatePullReviewOptions 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_COMMENTS
- See Also:
-
SERIALIZED_NAME_COMMIT_ID
- See Also:
-
SERIALIZED_NAME_EVENT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreatePullReviewOptions
public CreatePullReviewOptions()
-
-
Method Details
-
body
-
getBody
Get body- Returns:
- body
-
setBody
-
comments
-
addCommentsItem
-
getComments
Get comments- Returns:
- comments
-
setComments
-
commitId
-
getCommitId
Get commitId- Returns:
- commitId
-
setCommitId
-
event
-
getEvent
ReviewStateType review state type- Returns:
- event
-
setEvent
-
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 CreatePullReviewOptions
-
fromJson
Create an instance of CreatePullReviewOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePullReviewOptions
- Throws:
IOException- if the JSON string is invalid with respect to CreatePullReviewOptions
-
toJson
Convert an instance of CreatePullReviewOptions to an JSON string- Returns:
- JSON string
-