Class V2HorizontalPodAutoscalerStatus

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2HorizontalPodAutoscalerStatus

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V2HorizontalPodAutoscalerStatus extends Object
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
  • Field Details

  • Constructor Details

    • V2HorizontalPodAutoscalerStatus

      public V2HorizontalPodAutoscalerStatus(Integer desiredReplicas)
  • Method Details

    • getConditions

      public List<@Valid 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:
      the conditions property value
    • setConditions

      public void setConditions(List<@Valid V2HorizontalPodAutoscalerCondition> conditions)
      Set the conditions property value
    • conditions

      Set conditions in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • addconditionsItem

      public V2HorizontalPodAutoscalerStatus addconditionsItem(V2HorizontalPodAutoscalerCondition conditionsItem)
      Add an item to the conditions property in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • getCurrentMetrics

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

      public void setCurrentMetrics(List<@Valid V2MetricStatus> currentMetrics)
      Set the currentMetrics property value
    • currentMetrics

      public V2HorizontalPodAutoscalerStatus currentMetrics(List<@Valid V2MetricStatus> currentMetrics)
      Set currentMetrics in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • addcurrentMetricsItem

      public V2HorizontalPodAutoscalerStatus addcurrentMetricsItem(V2MetricStatus currentMetricsItem)
      Add an item to the currentMetrics property in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • getCurrentReplicas

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

      public void setCurrentReplicas(Integer currentReplicas)
      Set the currentReplicas property value
    • currentReplicas

      public V2HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas)
      Set currentReplicas in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • getDesiredReplicas

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

      public void setDesiredReplicas(Integer desiredReplicas)
      Set the desiredReplicas property value
    • desiredReplicas

      public V2HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas)
      Set desiredReplicas in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • getLastScaleTime

      public ZonedDateTime 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:
      the lastScaleTime property value
    • setLastScaleTime

      public void setLastScaleTime(ZonedDateTime lastScaleTime)
      Set the lastScaleTime property value
    • lastScaleTime

      public V2HorizontalPodAutoscalerStatus lastScaleTime(ZonedDateTime lastScaleTime)
      Set lastScaleTime in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • getObservedGeneration

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

      public void setObservedGeneration(Long observedGeneration)
      Set the observedGeneration property value
    • observedGeneration

      public V2HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration)
      Set observedGeneration in a chainable fashion.
      Returns:
      The same instance of V2HorizontalPodAutoscalerStatus for chaining.
    • 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