Package net.stickycode.kuuty.model.v18
Class IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus extends Object
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONDITIONSstatic StringJSON_PROPERTY_CURRENT_METRICSstatic StringJSON_PROPERTY_CURRENT_REPLICASstatic StringJSON_PROPERTY_DESIRED_REPLICASstatic StringJSON_PROPERTY_LAST_SCALE_TIMEstatic StringJSON_PROPERTY_OBSERVED_GENERATION
-
Constructor Summary
Constructors Constructor Description IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CONDITIONS
public static final String JSON_PROPERTY_CONDITIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENT_METRICS
public static final String JSON_PROPERTY_CURRENT_METRICS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENT_REPLICAS
public static final String JSON_PROPERTY_CURRENT_REPLICAS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESIRED_REPLICAS
public static final String JSON_PROPERTY_DESIRED_REPLICAS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_SCALE_TIME
public static final String JSON_PROPERTY_LAST_SCALE_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBSERVED_GENERATION
public static final String JSON_PROPERTY_OBSERVED_GENERATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
conditions
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus conditions(List<IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerCondition> conditions)
-
addConditionsItem
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus addConditionsItem(IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerCondition conditionsItem)
-
getConditions
public List<IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerCondition> 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(List<IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerCondition> conditions)
-
currentMetrics
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus currentMetrics(List<IoK8sApiAutoscalingV2beta2MetricStatus> currentMetrics)
-
addCurrentMetricsItem
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus addCurrentMetricsItem(IoK8sApiAutoscalingV2beta2MetricStatus currentMetricsItem)
-
getCurrentMetrics
@Nullable public List<IoK8sApiAutoscalingV2beta2MetricStatus> getCurrentMetrics()
currentMetrics is the last read state of the metrics used by this autoscaler.- Returns:
- currentMetrics
-
setCurrentMetrics
public void setCurrentMetrics(List<IoK8sApiAutoscalingV2beta2MetricStatus> currentMetrics)
-
currentReplicas
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas)
-
getCurrentReplicas
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(Integer currentReplicas)
-
desiredReplicas
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas)
-
getDesiredReplicas
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(Integer desiredReplicas)
-
lastScaleTime
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime)
-
getLastScaleTime
@Nullable public OffsetDateTime getLastScaleTime()
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.- Returns:
- lastScaleTime
-
setLastScaleTime
public void setLastScaleTime(OffsetDateTime lastScaleTime)
-
observedGeneration
public IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration)
-
getObservedGeneration
@Nullable public Long getObservedGeneration()
observedGeneration is the most recent generation observed by this autoscaler.- Returns:
- observedGeneration
-
setObservedGeneration
public void setObservedGeneration(Long observedGeneration)
-
-