Class JobStatus.Builder

  • Enclosing class:
    JobStatus

    public static class JobStatus.Builder
    extends java.lang.Object
    • 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)
      • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object