Class CreateMilestoneOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateMilestoneOption
@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 CreateMilestoneOption
extends Object
CreateMilestoneOption options for creating a milestone
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets state -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) dueOn(OffsetDateTime dueOn) booleanstatic CreateMilestoneOptionCreate an instance of CreateMilestoneOption given an JSON stringGet descriptiongetDueOn()Get dueOngetState()Get stategetTitle()Get titleinthashCode()voidsetDescription(String description) voidsetDueOn(OffsetDateTime dueOn) voidvoidtoJson()Convert an instance of CreateMilestoneOption 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DUE_ON
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateMilestoneOption
public CreateMilestoneOption()
-
-
Method Details
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
dueOn
-
getDueOn
Get dueOn- Returns:
- dueOn
-
setDueOn
-
state
-
getState
Get state- Returns:
- state
-
setState
-
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 CreateMilestoneOption
-
fromJson
Create an instance of CreateMilestoneOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateMilestoneOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateMilestoneOption
-
toJson
Convert an instance of CreateMilestoneOption to an JSON string- Returns:
- JSON string
-