Class CreateIssueOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateIssueOption
@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 CreateIssueOption
extends Object
CreateIssueOption options to create one issue
-
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 CreateIssueOptionCreate an instance of CreateIssueOption given an JSON stringdeprecatedGet assigneesgetBody()Get bodyGet closedGet dueDatelist of label idsmilestone idgetRef()Get refgetTitle()Get titleinthashCode()voidsetAssignee(String assignee) voidsetAssignees(List<String> assignees) voidvoidvoidsetDueDate(OffsetDateTime dueDate) voidvoidsetMilestone(Long milestone) voidvoidtoJson()Convert an instance of CreateIssueOption 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_BODY
- See Also:
-
SERIALIZED_NAME_CLOSED
- See Also:
-
SERIALIZED_NAME_DUE_DATE
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_MILESTONE
- See Also:
-
SERIALIZED_NAME_REF
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateIssueOption
public CreateIssueOption()
-
-
Method Details
-
assignee
-
getAssignee
deprecated- Returns:
- assignee
-
setAssignee
-
assignees
-
addAssigneesItem
-
getAssignees
Get assignees- Returns:
- assignees
-
setAssignees
-
body
-
getBody
Get body- Returns:
- body
-
setBody
-
closed
-
getClosed
Get closed- Returns:
- closed
-
setClosed
-
dueDate
-
getDueDate
Get dueDate- Returns:
- dueDate
-
setDueDate
-
labels
-
addLabelsItem
-
getLabels
list of label ids- Returns:
- labels
-
setLabels
-
milestone
-
getMilestone
milestone id- Returns:
- milestone
-
setMilestone
-
ref
-
getRef
Get ref- Returns:
- ref
-
setRef
-
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 CreateIssueOption
-
fromJson
Create an instance of CreateIssueOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateIssueOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateIssueOption
-
toJson
Convert an instance of CreateIssueOption to an JSON string- Returns:
- JSON string
-