Class JobStatus.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.batch.v1.JobStatus.Builder
-
- Enclosing class:
- JobStatus
public static class JobStatus.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobStatus.Builder
active(java.lang.Number active)
The number of actively running pods.JobStatus.Builder
addToConditions(JobCondition addToConditions)
JobStatus
build()
JobStatus.Builder
clearConditions()
JobStatus.Builder
completedIndexes(java.lang.String completedIndexes)
CompletedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format.JobStatus.Builder
completionTime(java.time.OffsetDateTime completionTime)
JobStatus.Builder
conditions(java.util.Collection<? extends JobCondition> conditions)
JobStatus.Builder
failed(java.lang.Number failed)
The number of pods which reached phase Failed.JobStatus.Builder
startTime(java.time.OffsetDateTime startTime)
JobStatus.Builder
succeeded(java.lang.Number succeeded)
The number of pods which reached phase Succeeded.java.lang.String
toString()
JobStatus.Builder
uncountedTerminatedPods(UncountedTerminatedPods uncountedTerminatedPods)
-
-
-
Method Detail
-
active
public JobStatus.Builder active(java.lang.Number active)
The number of actively running pods.- Returns:
this
.
-
completedIndexes
public JobStatus.Builder completedIndexes(java.lang.String completedIndexes)
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:
this
.
-
completionTime
public JobStatus.Builder completionTime(java.time.OffsetDateTime completionTime)
-
addToConditions
public JobStatus.Builder addToConditions(JobCondition addToConditions)
-
conditions
public JobStatus.Builder conditions(java.util.Collection<? extends JobCondition> conditions)
-
clearConditions
public JobStatus.Builder clearConditions()
-
failed
public JobStatus.Builder failed(java.lang.Number failed)
The number of pods which reached phase Failed.- Returns:
this
.
-
startTime
public JobStatus.Builder startTime(java.time.OffsetDateTime startTime)
-
succeeded
public JobStatus.Builder succeeded(java.lang.Number succeeded)
The number of pods which reached phase Succeeded.- Returns:
this
.
-
uncountedTerminatedPods
public JobStatus.Builder uncountedTerminatedPods(UncountedTerminatedPods uncountedTerminatedPods)
-
build
public JobStatus build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-