Class ActionRunJob
java.lang.Object
build.cursed.genapi.forgejo.model.ActionRunJob
@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 ActionRunJob
extends Object
ActionRunJob represents a job of a run
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNeedsItem(String needsItem) addRunsOnItem(String runsOnItem) booleanstatic ActionRunJobCreate an instance of ActionRunJob given an JSON stringHow many times the job has been attempted including the current attempt.Opaque identifier that uniquely identifies a single attempt of a job.getId()Identifier of this job.getName()the action run job namegetNeeds()the action run job needed idsthe owner idthe repository idthe action run job labels to run onthe action run job statusthe action run job latest task idinthashCode()voidsetAttempt(Long attempt) voidvoidvoidvoidvoidsetOwnerId(Long ownerId) voidvoidvoidvoidtoJson()Convert an instance of ActionRunJob 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_ATTEMPT
- See Also:
-
SERIALIZED_NAME_HANDLE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NEEDS
- See Also:
-
SERIALIZED_NAME_OWNER_ID
- See Also:
-
SERIALIZED_NAME_REPO_ID
- See Also:
-
SERIALIZED_NAME_RUNS_ON
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TASK_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ActionRunJob
public ActionRunJob()
-
-
Method Details
-
attempt
-
getAttempt
How many times the job has been attempted including the current attempt.- Returns:
- attempt
-
setAttempt
-
handle
-
getHandle
Opaque identifier that uniquely identifies a single attempt of a job.- Returns:
- handle
-
setHandle
-
id
-
getId
Identifier of this job.- Returns:
- id
-
setId
-
name
-
getName
the action run job name- Returns:
- name
-
setName
-
needs
-
addNeedsItem
-
getNeeds
the action run job needed ids- Returns:
- needs
-
setNeeds
-
ownerId
-
getOwnerId
the owner id- Returns:
- ownerId
-
setOwnerId
-
repoId
-
getRepoId
the repository id- Returns:
- repoId
-
setRepoId
-
runsOn
-
addRunsOnItem
-
getRunsOn
the action run job labels to run on- Returns:
- runsOn
-
setRunsOn
-
status
-
getStatus
the action run job status- Returns:
- status
-
setStatus
-
taskId
-
getTaskId
the action run job latest task id- Returns:
- taskId
-
setTaskId
-
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 ActionRunJob
-
fromJson
Create an instance of ActionRunJob given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ActionRunJob
- Throws:
IOException- if the JSON string is invalid with respect to ActionRunJob
-
toJson
Convert an instance of ActionRunJob to an JSON string- Returns:
- JSON string
-