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
  • Field Details

  • Constructor Details

    • ActionRunJob

      public ActionRunJob()
  • Method Details

    • attempt

      public ActionRunJob attempt(@Nullable Long attempt)
    • getAttempt

      @Nullable public Long getAttempt()
      How many times the job has been attempted including the current attempt.
      Returns:
      attempt
    • setAttempt

      public void setAttempt(@Nullable Long attempt)
    • handle

      public ActionRunJob handle(@Nullable String handle)
    • getHandle

      @Nullable public String getHandle()
      Opaque identifier that uniquely identifies a single attempt of a job.
      Returns:
      handle
    • setHandle

      public void setHandle(@Nullable String handle)
    • id

      public ActionRunJob id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      Identifier of this job.
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • name

      public ActionRunJob name(@Nullable String name)
    • getName

      @Nullable public String getName()
      the action run job name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • needs

      public ActionRunJob needs(@Nullable List<String> needs)
    • addNeedsItem

      public ActionRunJob addNeedsItem(String needsItem)
    • getNeeds

      @Nullable public List<String> getNeeds()
      the action run job needed ids
      Returns:
      needs
    • setNeeds

      public void setNeeds(@Nullable List<String> needs)
    • ownerId

      public ActionRunJob ownerId(@Nullable Long ownerId)
    • getOwnerId

      @Nullable public Long getOwnerId()
      the owner id
      Returns:
      ownerId
    • setOwnerId

      public void setOwnerId(@Nullable Long ownerId)
    • repoId

      public ActionRunJob repoId(@Nullable Long repoId)
    • getRepoId

      @Nullable public Long getRepoId()
      the repository id
      Returns:
      repoId
    • setRepoId

      public void setRepoId(@Nullable Long repoId)
    • runsOn

      public ActionRunJob runsOn(@Nullable List<String> runsOn)
    • addRunsOnItem

      public ActionRunJob addRunsOnItem(String runsOnItem)
    • getRunsOn

      @Nullable public List<String> getRunsOn()
      the action run job labels to run on
      Returns:
      runsOn
    • setRunsOn

      public void setRunsOn(@Nullable List<String> runsOn)
    • status

      public ActionRunJob status(@Nullable String status)
    • getStatus

      @Nullable public String getStatus()
      the action run job status
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable String status)
    • taskId

      public ActionRunJob taskId(@Nullable Long taskId)
    • getTaskId

      @Nullable public Long getTaskId()
      the action run job latest task id
      Returns:
      taskId
    • setTaskId

      public void setTaskId(@Nullable Long taskId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static ActionRunJob fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of ActionRunJob to an JSON string
      Returns:
      JSON string