Class V2HorizontalPodAutoscalerStatus

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

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

  • Constructor Details

    • V2HorizontalPodAutoscalerStatus

      public V2HorizontalPodAutoscalerStatus()
  • Method Details

    • conditions

      public V2HorizontalPodAutoscalerStatus conditions(@Nullable List<V2HorizontalPodAutoscalerCondition> conditions)
    • addConditionsItem

      public V2HorizontalPodAutoscalerStatus addConditionsItem(V2HorizontalPodAutoscalerCondition conditionsItem)
    • getConditions

      @Nullable public List<V2HorizontalPodAutoscalerCondition> getConditions()
      conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
      Returns:
      conditions
    • setConditions

      public void setConditions(@Nullable List<V2HorizontalPodAutoscalerCondition> conditions)
    • currentMetrics

      public V2HorizontalPodAutoscalerStatus currentMetrics(@Nullable List<V2MetricStatus> currentMetrics)
    • addCurrentMetricsItem

      public V2HorizontalPodAutoscalerStatus addCurrentMetricsItem(V2MetricStatus currentMetricsItem)
    • getCurrentMetrics

      @Nullable public List<V2MetricStatus> getCurrentMetrics()
      currentMetrics is the last read state of the metrics used by this autoscaler.
      Returns:
      currentMetrics
    • setCurrentMetrics

      public void setCurrentMetrics(@Nullable List<V2MetricStatus> currentMetrics)
    • currentReplicas

      public V2HorizontalPodAutoscalerStatus currentReplicas(@Nullable Integer currentReplicas)
    • getCurrentReplicas

      @Nullable public Integer getCurrentReplicas()
      currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
      Returns:
      currentReplicas
    • setCurrentReplicas

      public void setCurrentReplicas(@Nullable Integer currentReplicas)
    • desiredReplicas

      public V2HorizontalPodAutoscalerStatus desiredReplicas(@Nonnull Integer desiredReplicas)
    • getDesiredReplicas

      @Nonnull public Integer getDesiredReplicas()
      desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
      Returns:
      desiredReplicas
    • setDesiredReplicas

      public void setDesiredReplicas(@Nonnull Integer desiredReplicas)
    • lastScaleTime

      public V2HorizontalPodAutoscalerStatus lastScaleTime(@Nullable OffsetDateTime lastScaleTime)
    • getLastScaleTime

      @Nullable public OffsetDateTime getLastScaleTime()
      lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.
      Returns:
      lastScaleTime
    • setLastScaleTime

      public void setLastScaleTime(@Nullable OffsetDateTime lastScaleTime)
    • observedGeneration

      public V2HorizontalPodAutoscalerStatus observedGeneration(@Nullable Long observedGeneration)
    • getObservedGeneration

      @Nullable public Long getObservedGeneration()
      observedGeneration is the most recent generation observed by this autoscaler.
      Returns:
      observedGeneration
    • setObservedGeneration

      public void setObservedGeneration(@Nullable Long observedGeneration)
    • 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 V2HorizontalPodAutoscalerStatus
    • fromJson

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

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