Class AddTimeOption
java.lang.Object
build.cursed.genapi.forgejo.model.AddTimeOption
@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 AddTimeOption
extends Object
AddTimeOption options for adding time to an issue
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated(OffsetDateTime created) booleanstatic AddTimeOptionCreate an instance of AddTimeOption given an JSON stringGet createdgetTime()time in secondsUser who spent the time (optional)inthashCode()voidsetCreated(OffsetDateTime created) voidvoidsetUserName(String userName) toJson()Convert an instance of AddTimeOption 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_CREATED
- See Also:
-
SERIALIZED_NAME_TIME
- See Also:
-
SERIALIZED_NAME_USER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AddTimeOption
public AddTimeOption()
-
-
Method Details
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
time
-
getTime
time in seconds- Returns:
- time
-
setTime
-
userName
-
getUserName
User who spent the time (optional)- Returns:
- userName
-
setUserName
-
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 AddTimeOption
-
fromJson
Create an instance of AddTimeOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AddTimeOption
- Throws:
IOException- if the JSON string is invalid with respect to AddTimeOption
-
toJson
Convert an instance of AddTimeOption to an JSON string- Returns:
- JSON string
-