All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.apps.v1.ReplicaSetStatus Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.apps.v1;

import java.lang.Long;
import java.util.List;

/**
 * ReplicaSetStatus represents the current status of a ReplicaSet.
 */
public class ReplicaSetStatus {
  public Long availableReplicas;

  public List conditions;

  public Long fullyLabeledReplicas;

  public Long observedGeneration;

  public Long readyReplicas;

  public Long replicas;

  /**
   * The number of available replicas (ready for at least minReadySeconds) for this replica set.
   */
  public ReplicaSetStatus availableReplicas(Long availableReplicas) {
    this.availableReplicas = availableReplicas;
    return this;
  }

  /**
   * Represents the latest available observations of a replica set's current state.
   */
  public ReplicaSetStatus conditions(List conditions) {
    this.conditions = conditions;
    return this;
  }

  /**
   * The number of pods that have labels matching the labels of the pod template of the replicaset.
   */
  public ReplicaSetStatus fullyLabeledReplicas(Long fullyLabeledReplicas) {
    this.fullyLabeledReplicas = fullyLabeledReplicas;
    return this;
  }

  /**
   * ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
   */
  public ReplicaSetStatus observedGeneration(Long observedGeneration) {
    this.observedGeneration = observedGeneration;
    return this;
  }

  /**
   * readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.
   */
  public ReplicaSetStatus readyReplicas(Long readyReplicas) {
    this.readyReplicas = readyReplicas;
    return this;
  }

  /**
   * Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
   */
  public ReplicaSetStatus replicas(Long replicas) {
    this.replicas = replicas;
    return this;
  }

  public static ReplicaSetStatus replicaSetStatus() {
    return new ReplicaSetStatus();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy