Class V1ReplicaSetStatus

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1ReplicaSetStatus extends Object
ReplicaSetStatus represents the current status of a ReplicaSet.
  • Field Details

  • Constructor Details

    • V1ReplicaSetStatus

      public V1ReplicaSetStatus()
  • Method Details

    • availableReplicas

      public V1ReplicaSetStatus availableReplicas(@Nullable Integer availableReplicas)
    • getAvailableReplicas

      @Nullable public Integer getAvailableReplicas()
      The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.
      Returns:
      availableReplicas
    • setAvailableReplicas

      public void setAvailableReplicas(@Nullable Integer availableReplicas)
    • conditions

      public V1ReplicaSetStatus conditions(@Nullable List<V1ReplicaSetCondition> conditions)
    • addConditionsItem

      public V1ReplicaSetStatus addConditionsItem(V1ReplicaSetCondition conditionsItem)
    • getConditions

      @Nullable public List<V1ReplicaSetCondition> getConditions()
      Represents the latest available observations of a replica set's current state.
      Returns:
      conditions
    • setConditions

      public void setConditions(@Nullable List<V1ReplicaSetCondition> conditions)
    • fullyLabeledReplicas

      public V1ReplicaSetStatus fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas)
    • getFullyLabeledReplicas

      @Nullable public Integer getFullyLabeledReplicas()
      The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.
      Returns:
      fullyLabeledReplicas
    • setFullyLabeledReplicas

      public void setFullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas)
    • observedGeneration

      public V1ReplicaSetStatus observedGeneration(@Nullable Long observedGeneration)
    • getObservedGeneration

      @Nullable public Long getObservedGeneration()
      ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
      Returns:
      observedGeneration
    • setObservedGeneration

      public void setObservedGeneration(@Nullable Long observedGeneration)
    • readyReplicas

      public V1ReplicaSetStatus readyReplicas(@Nullable Integer readyReplicas)
    • getReadyReplicas

      @Nullable public Integer getReadyReplicas()
      The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.
      Returns:
      readyReplicas
    • setReadyReplicas

      public void setReadyReplicas(@Nullable Integer readyReplicas)
    • replicas

      public V1ReplicaSetStatus replicas(@Nonnull Integer replicas)
    • getReplicas

      @Nonnull public Integer getReplicas()
      Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
      Returns:
      replicas
    • setReplicas

      public void setReplicas(@Nonnull Integer replicas)
    • terminatingReplicas

      public V1ReplicaSetStatus terminatingReplicas(@Nullable Integer terminatingReplicas)
    • getTerminatingReplicas

      @Nullable public Integer getTerminatingReplicas()
      The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.
      Returns:
      terminatingReplicas
    • setTerminatingReplicas

      public void setTerminatingReplicas(@Nullable Integer terminatingReplicas)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1ReplicaSetStatus
    • fromJson

      public static V1ReplicaSetStatus fromJson(String jsonString) throws IOException
      Create an instance of V1ReplicaSetStatus given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1ReplicaSetStatus
      Throws:
      IOException - if the JSON string is invalid with respect to V1ReplicaSetStatus
    • toJson

      public String toJson()
      Convert an instance of V1ReplicaSetStatus to an JSON string
      Returns:
      JSON string