Class DispatchWorkflowRun
java.lang.Object
build.cursed.genapi.forgejo.model.DispatchWorkflowRun
@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 DispatchWorkflowRun
extends Object
DispatchWorkflowRun represents a workflow run
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddJobsItem(String jobsItem) booleanstatic DispatchWorkflowRunCreate an instance of DispatchWorkflowRun given an JSON stringgetId()the workflow run idgetJobs()the jobs namea unique number for each run of a repositoryinthashCode()voidvoidvoidsetRunNumber(Long runNumber) toJson()Convert an instance of DispatchWorkflowRun 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_ID
- See Also:
-
SERIALIZED_NAME_JOBS
- See Also:
-
SERIALIZED_NAME_RUN_NUMBER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
DispatchWorkflowRun
public DispatchWorkflowRun()
-
-
Method Details
-
id
-
getId
the workflow run id- Returns:
- id
-
setId
-
jobs
-
addJobsItem
-
getJobs
the jobs name- Returns:
- jobs
-
setJobs
-
runNumber
-
getRunNumber
a unique number for each run of a repository- Returns:
- runNumber
-
setRunNumber
-
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 DispatchWorkflowRun
-
fromJson
Create an instance of DispatchWorkflowRun given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DispatchWorkflowRun
- Throws:
IOException- if the JSON string is invalid with respect to DispatchWorkflowRun
-
toJson
Convert an instance of DispatchWorkflowRun to an JSON string- Returns:
- JSON string
-