Class V1DeploymentStatus

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1DeploymentStatus extends Object
DeploymentStatus is the most recently observed status of the Deployment.
  • Field Details

  • Constructor Details

    • V1DeploymentStatus

      public V1DeploymentStatus()
  • Method Details

    • availableReplicas

      public V1DeploymentStatus availableReplicas(Integer availableReplicas)
    • getAvailableReplicas

      @Nullable public Integer getAvailableReplicas()
      Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
      Returns:
      availableReplicas
    • setAvailableReplicas

      public void setAvailableReplicas(Integer availableReplicas)
    • collisionCount

      public V1DeploymentStatus collisionCount(Integer collisionCount)
    • getCollisionCount

      @Nullable public Integer getCollisionCount()
      Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.
      Returns:
      collisionCount
    • setCollisionCount

      public void setCollisionCount(Integer collisionCount)
    • conditions

      public V1DeploymentStatus conditions(List<V1DeploymentCondition> conditions)
    • addConditionsItem

      public V1DeploymentStatus addConditionsItem(V1DeploymentCondition conditionsItem)
    • getConditions

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

      public void setConditions(List<V1DeploymentCondition> conditions)
    • observedGeneration

      public V1DeploymentStatus observedGeneration(Long observedGeneration)
    • getObservedGeneration

      @Nullable public Long getObservedGeneration()
      The generation observed by the deployment controller.
      Returns:
      observedGeneration
    • setObservedGeneration

      public void setObservedGeneration(Long observedGeneration)
    • readyReplicas

      public V1DeploymentStatus readyReplicas(Integer readyReplicas)
    • getReadyReplicas

      @Nullable public Integer getReadyReplicas()
      readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.
      Returns:
      readyReplicas
    • setReadyReplicas

      public void setReadyReplicas(Integer readyReplicas)
    • replicas

      public V1DeploymentStatus replicas(Integer replicas)
    • getReplicas

      @Nullable public Integer getReplicas()
      Total number of non-terminated pods targeted by this deployment (their labels match the selector).
      Returns:
      replicas
    • setReplicas

      public void setReplicas(Integer replicas)
    • unavailableReplicas

      public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas)
    • getUnavailableReplicas

      @Nullable public Integer getUnavailableReplicas()
      Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
      Returns:
      unavailableReplicas
    • setUnavailableReplicas

      public void setUnavailableReplicas(Integer unavailableReplicas)
    • updatedReplicas

      public V1DeploymentStatus updatedReplicas(Integer updatedReplicas)
    • getUpdatedReplicas

      @Nullable public Integer getUpdatedReplicas()
      Total number of non-terminated pods targeted by this deployment that have the desired template spec.
      Returns:
      updatedReplicas
    • setUpdatedReplicas

      public void setUpdatedReplicas(Integer updatedReplicas)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1DeploymentStatus
    • fromJson

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

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