Class V1JobStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1JobStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1JobStatus extends Object
JobStatus represents the current state of a Job.
  • Field Details

  • Constructor Details

    • V1JobStatus

      public V1JobStatus()
  • Method Details

    • active

      public V1JobStatus active(Integer active)
    • getActive

      @Nullable public Integer getActive()
      The number of pending and running pods.
      Returns:
      active
    • setActive

      public void setActive(Integer active)
    • completedIndexes

      public V1JobStatus completedIndexes(String completedIndexes)
    • getCompletedIndexes

      @Nullable public String getCompletedIndexes()
      completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".
      Returns:
      completedIndexes
    • setCompletedIndexes

      public void setCompletedIndexes(String completedIndexes)
    • completionTime

      public V1JobStatus completionTime(OffsetDateTime completionTime)
    • getCompletionTime

      @Nullable public OffsetDateTime getCompletionTime()
      Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.
      Returns:
      completionTime
    • setCompletionTime

      public void setCompletionTime(OffsetDateTime completionTime)
    • conditions

      public V1JobStatus conditions(List<V1JobCondition> conditions)
    • addConditionsItem

      public V1JobStatus addConditionsItem(V1JobCondition conditionsItem)
    • getConditions

      @Nullable public List<V1JobCondition> getConditions()
      The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
      Returns:
      conditions
    • setConditions

      public void setConditions(List<V1JobCondition> conditions)
    • failed

      public V1JobStatus failed(Integer failed)
    • getFailed

      @Nullable public Integer getFailed()
      The number of pods which reached phase Failed.
      Returns:
      failed
    • setFailed

      public void setFailed(Integer failed)
    • ready

      public V1JobStatus ready(Integer ready)
    • getReady

      @Nullable public Integer getReady()
      The number of pods which have a Ready condition. This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).
      Returns:
      ready
    • setReady

      public void setReady(Integer ready)
    • startTime

      public V1JobStatus startTime(OffsetDateTime startTime)
    • getStartTime

      @Nullable public OffsetDateTime getStartTime()
      Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
      Returns:
      startTime
    • setStartTime

      public void setStartTime(OffsetDateTime startTime)
    • succeeded

      public V1JobStatus succeeded(Integer succeeded)
    • getSucceeded

      @Nullable public Integer getSucceeded()
      The number of pods which reached phase Succeeded.
      Returns:
      succeeded
    • setSucceeded

      public void setSucceeded(Integer succeeded)
    • uncountedTerminatedPods

      public V1JobStatus uncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods)
    • getUncountedTerminatedPods

      @Nullable public V1UncountedTerminatedPods getUncountedTerminatedPods()
      Get uncountedTerminatedPods
      Returns:
      uncountedTerminatedPods
    • setUncountedTerminatedPods

      public void setUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods)
    • 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