Class CreatePullRequestOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreatePullRequestOption
@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 CreatePullRequestOption
extends Object
CreatePullRequestOption options when creating a pull request
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssigneesItem(String assigneesItem) addLabelsItem(Long labelsItem) dueDate(OffsetDateTime dueDate) booleanstatic CreatePullRequestOptionCreate an instance of CreatePullRequestOption given an JSON stringGet assigneeGet assigneesgetBase()Get basegetBody()Get bodyGet dueDategetHead()Get headGet labelsGet milestonegetTitle()Get titleinthashCode()voidsetAssignee(String assignee) voidsetAssignees(List<String> assignees) voidvoidvoidsetDueDate(OffsetDateTime dueDate) voidvoidvoidsetMilestone(Long milestone) voidtoJson()Convert an instance of CreatePullRequestOption 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_ASSIGNEE
- See Also:
-
SERIALIZED_NAME_ASSIGNEES
- See Also:
-
SERIALIZED_NAME_BASE
- See Also:
-
SERIALIZED_NAME_BODY
- See Also:
-
SERIALIZED_NAME_DUE_DATE
- See Also:
-
SERIALIZED_NAME_HEAD
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_MILESTONE
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreatePullRequestOption
public CreatePullRequestOption()
-
-
Method Details
-
assignee
-
getAssignee
Get assignee- Returns:
- assignee
-
setAssignee
-
assignees
-
addAssigneesItem
-
getAssignees
Get assignees- Returns:
- assignees
-
setAssignees
-
base
-
getBase
Get base- Returns:
- base
-
setBase
-
body
-
getBody
Get body- Returns:
- body
-
setBody
-
dueDate
-
getDueDate
Get dueDate- Returns:
- dueDate
-
setDueDate
-
head
-
getHead
Get head- Returns:
- head
-
setHead
-
labels
-
addLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
milestone
-
getMilestone
Get milestone- Returns:
- milestone
-
setMilestone
-
title
-
getTitle
Get title- Returns:
- title
-
setTitle
-
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 CreatePullRequestOption
-
fromJson
Create an instance of CreatePullRequestOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePullRequestOption
- Throws:
IOException- if the JSON string is invalid with respect to CreatePullRequestOption
-
toJson
Convert an instance of CreatePullRequestOption to an JSON string- Returns:
- JSON string
-