java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1JobStatus

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1JobStatus extends Object
JobStatus represents the current state of a Job.
  • Field Details

  • Constructor Details

    • V1JobStatus

      public V1JobStatus()
  • Method Details

    • getActive

      public Integer getActive()
      The number of pending and running pods.
      Returns:
      the active property value
    • setActive

      public void setActive(Integer active)
      Set the active property value
    • active

      public V1JobStatus active(Integer active)
      Set active in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getCompletedIndexes

      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:
      the completedIndexes property value
    • setCompletedIndexes

      public void setCompletedIndexes(String completedIndexes)
      Set the completedIndexes property value
    • completedIndexes

      public V1JobStatus completedIndexes(String completedIndexes)
      Set completedIndexes in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getCompletionTime

      public ZonedDateTime 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:
      the completionTime property value
    • setCompletionTime

      public void setCompletionTime(ZonedDateTime completionTime)
      Set the completionTime property value
    • completionTime

      public V1JobStatus completionTime(ZonedDateTime completionTime)
      Set completionTime in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getConditions

      public List<@Valid 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:
      the conditions property value
    • setConditions

      public void setConditions(List<@Valid V1JobCondition> conditions)
      Set the conditions property value
    • conditions

      public V1JobStatus conditions(List<@Valid V1JobCondition> conditions)
      Set conditions in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • addconditionsItem

      public V1JobStatus addconditionsItem(V1JobCondition conditionsItem)
      Add an item to the conditions property in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getFailed

      public Integer getFailed()
      The number of pods which reached phase Failed.
      Returns:
      the failed property value
    • setFailed

      public void setFailed(Integer failed)
      Set the failed property value
    • failed

      public V1JobStatus failed(Integer failed)
      Set failed in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getReady

      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:
      the ready property value
    • setReady

      public void setReady(Integer ready)
      Set the ready property value
    • ready

      public V1JobStatus ready(Integer ready)
      Set ready in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getStartTime

      public ZonedDateTime 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:
      the startTime property value
    • setStartTime

      public void setStartTime(ZonedDateTime startTime)
      Set the startTime property value
    • startTime

      public V1JobStatus startTime(ZonedDateTime startTime)
      Set startTime in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getSucceeded

      public Integer getSucceeded()
      The number of pods which reached phase Succeeded.
      Returns:
      the succeeded property value
    • setSucceeded

      public void setSucceeded(Integer succeeded)
      Set the succeeded property value
    • succeeded

      public V1JobStatus succeeded(Integer succeeded)
      Set succeeded in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • getUncountedTerminatedPods

      public V1UncountedTerminatedPods getUncountedTerminatedPods()
      Returns:
      the uncountedTerminatedPods property value
    • setUncountedTerminatedPods

      public void setUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods)
      Set the uncountedTerminatedPods property value
    • uncountedTerminatedPods

      public V1JobStatus uncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods)
      Set uncountedTerminatedPods in a chainable fashion.
      Returns:
      The same instance of V1JobStatus for chaining.
    • 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