Class Cron
java.lang.Object
build.cursed.genapi.forgejo.model.Cron
@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 Cron
extends Object
Cron represents a Cron task
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CronCreate an instance of Cron given an JSON stringGet execTimesgetName()Get namegetNext()Get nextgetPrev()Get prevGet scheduleinthashCode()next(OffsetDateTime next) prev(OffsetDateTime prev) voidsetExecTimes(Long execTimes) voidvoidsetNext(OffsetDateTime next) voidsetPrev(OffsetDateTime prev) voidsetSchedule(String schedule) toJson()Convert an instance of Cron 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_EXEC_TIMES
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NEXT
- See Also:
-
SERIALIZED_NAME_PREV
- See Also:
-
SERIALIZED_NAME_SCHEDULE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Cron
public Cron()
-
-
Method Details
-
execTimes
-
getExecTimes
Get execTimes- Returns:
- execTimes
-
setExecTimes
-
name
-
getName
Get name- Returns:
- name
-
setName
-
next
-
getNext
Get next- Returns:
- next
-
setNext
-
prev
-
getPrev
Get prev- Returns:
- prev
-
setPrev
-
schedule
-
getSchedule
Get schedule- Returns:
- schedule
-
setSchedule
-
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 Cron
-
fromJson
Create an instance of Cron given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Cron
- Throws:
IOException- if the JSON string is invalid with respect to Cron
-
toJson
Convert an instance of Cron to an JSON string- Returns:
- JSON string
-