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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddconditionsItem
(V2HorizontalPodAutoscalerCondition conditionsItem) Add an item to the conditions property in a chainable fashion.addcurrentMetricsItem
(V2MetricStatus currentMetricsItem) Add an item to the currentMetrics property in a chainable fashion.conditions
(List<@Valid V2HorizontalPodAutoscalerCondition> conditions) Set conditions in a chainable fashion.currentMetrics
(List<@Valid V2MetricStatus> currentMetrics) Set currentMetrics in a chainable fashion.currentReplicas
(Integer currentReplicas) Set currentReplicas in a chainable fashion.desiredReplicas
(Integer desiredReplicas) Set desiredReplicas in a chainable fashion.boolean
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.List<@Valid V2MetricStatus>
currentMetrics is the last read state of the metrics used by this autoscaler.currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.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.observedGeneration is the most recent generation observed by this autoscaler.int
hashCode()
lastScaleTime
(ZonedDateTime lastScaleTime) Set lastScaleTime in a chainable fashion.observedGeneration
(Long observedGeneration) Set observedGeneration in a chainable fashion.void
setConditions
(List<@Valid V2HorizontalPodAutoscalerCondition> conditions) Set the conditions property valuevoid
setCurrentMetrics
(List<@Valid V2MetricStatus> currentMetrics) Set the currentMetrics property valuevoid
setCurrentReplicas
(Integer currentReplicas) Set the currentReplicas property valuevoid
setDesiredReplicas
(Integer desiredReplicas) Set the desiredReplicas property valuevoid
setLastScaleTime
(ZonedDateTime lastScaleTime) Set the lastScaleTime property valuevoid
setObservedGeneration
(Long observedGeneration) Set the observedGeneration property valuetoString()
-
Field Details
-
JSON_PROPERTY_DESIRED_REPLICAS
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_CURRENT_METRICS
- See Also:
-
JSON_PROPERTY_CURRENT_REPLICAS
- See Also:
-
JSON_PROPERTY_LAST_SCALE_TIME
- See Also:
-
JSON_PROPERTY_OBSERVED_GENERATION
- See Also:
-
-
Constructor Details
-
V2HorizontalPodAutoscalerStatus
-
-
Method Details
-
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
Set the desiredReplicas property value- Parameters:
desiredReplicas
- property value to set
-
desiredReplicas
Set desiredReplicas in a chainable fashion.- Returns:
- The same instance of V2HorizontalPodAutoscalerStatus for chaining.
-
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
Set the conditions property value- Parameters:
conditions
- property value to set
-
conditions
public V2HorizontalPodAutoscalerStatus conditions(List<@Valid V2HorizontalPodAutoscalerCondition> 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
currentMetrics is the last read state of the metrics used by this autoscaler.- Returns:
- the currentMetrics property value
-
setCurrentMetrics
Set the currentMetrics property value- Parameters:
currentMetrics
- property value to set
-
currentMetrics
Set currentMetrics in a chainable fashion.- Returns:
- The same instance of V2HorizontalPodAutoscalerStatus for chaining.
-
addcurrentMetricsItem
Add an item to the currentMetrics property in a chainable fashion.- Returns:
- The same instance of V2HorizontalPodAutoscalerStatus for chaining.
-
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
Set the currentReplicas property value- Parameters:
currentReplicas
- property value to set
-
currentReplicas
Set currentReplicas in a chainable fashion.- Returns:
- The same instance of V2HorizontalPodAutoscalerStatus for chaining.
-
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
Set the lastScaleTime property value- Parameters:
lastScaleTime
- property value to set
-
lastScaleTime
Set lastScaleTime in a chainable fashion.- Returns:
- The same instance of V2HorizontalPodAutoscalerStatus for chaining.
-
getObservedGeneration
observedGeneration is the most recent generation observed by this autoscaler.- Returns:
- the observedGeneration property value
-
setObservedGeneration
Set the observedGeneration property value- Parameters:
observedGeneration
- property value to set
-
observedGeneration
Set observedGeneration in a chainable fashion.- Returns:
- The same instance of V2HorizontalPodAutoscalerStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-