Class HorizontalPodAutoscalerStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class HorizontalPodAutoscalerStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HorizontalPodAutoscalerStatus.Builder
-
Constructor Summary
Constructors Constructor Description HorizontalPodAutoscalerStatus()
HorizontalPodAutoscalerStatus(java.util.List<HorizontalPodAutoscalerCondition> conditions, java.util.List<MetricStatus> currentMetrics, @NonNull java.lang.Number currentReplicas, @NonNull java.lang.Number desiredReplicas, java.time.OffsetDateTime lastScaleTime, java.lang.Number observedGeneration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HorizontalPodAutoscalerStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<HorizontalPodAutoscalerCondition>
getConditions()
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.java.util.List<MetricStatus>
getCurrentMetrics()
currentMetrics is the last read state of the metrics used by this autoscaler.@NonNull java.lang.Number
getCurrentReplicas()
currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.@NonNull java.lang.Number
getDesiredReplicas()
desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.java.time.OffsetDateTime
getLastScaleTime()
java.lang.Number
getObservedGeneration()
observedGeneration is the most recent generation observed by this autoscaler.int
hashCode()
void
setConditions(java.util.List<HorizontalPodAutoscalerCondition> conditions)
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.void
setCurrentMetrics(java.util.List<MetricStatus> currentMetrics)
currentMetrics is the last read state of the metrics used by this autoscaler.void
setCurrentReplicas(@NonNull java.lang.Number currentReplicas)
currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.void
setDesiredReplicas(@NonNull java.lang.Number desiredReplicas)
desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.void
setLastScaleTime(java.time.OffsetDateTime lastScaleTime)
void
setObservedGeneration(java.lang.Number observedGeneration)
observedGeneration is the most recent generation observed by this autoscaler.HorizontalPodAutoscalerStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
HorizontalPodAutoscalerStatus
public HorizontalPodAutoscalerStatus(java.util.List<HorizontalPodAutoscalerCondition> conditions, java.util.List<MetricStatus> currentMetrics, @NonNull @NonNull java.lang.Number currentReplicas, @NonNull @NonNull java.lang.Number desiredReplicas, java.time.OffsetDateTime lastScaleTime, java.lang.Number observedGeneration)
-
HorizontalPodAutoscalerStatus
public HorizontalPodAutoscalerStatus()
-
-
Method Detail
-
builder
public static HorizontalPodAutoscalerStatus.Builder builder()
-
toBuilder
public HorizontalPodAutoscalerStatus.Builder toBuilder()
-
getConditions
public java.util.List<HorizontalPodAutoscalerCondition> getConditions()
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
-
getCurrentMetrics
public java.util.List<MetricStatus> getCurrentMetrics()
currentMetrics is the last read state of the metrics used by this autoscaler.
-
getCurrentReplicas
@NonNull public @NonNull java.lang.Number getCurrentReplicas()
currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
-
getDesiredReplicas
@NonNull public @NonNull java.lang.Number getDesiredReplicas()
desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
-
getLastScaleTime
public java.time.OffsetDateTime getLastScaleTime()
-
getObservedGeneration
public java.lang.Number getObservedGeneration()
observedGeneration is the most recent generation observed by this autoscaler.
-
setConditions
public void setConditions(java.util.List<HorizontalPodAutoscalerCondition> conditions)
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
-
setCurrentMetrics
public void setCurrentMetrics(java.util.List<MetricStatus> currentMetrics)
currentMetrics is the last read state of the metrics used by this autoscaler.
-
setCurrentReplicas
public void setCurrentReplicas(@NonNull @NonNull java.lang.Number currentReplicas)
currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.
-
setDesiredReplicas
public void setDesiredReplicas(@NonNull @NonNull java.lang.Number desiredReplicas)
desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.
-
setLastScaleTime
public void setLastScaleTime(java.time.OffsetDateTime lastScaleTime)
-
setObservedGeneration
public void setObservedGeneration(java.lang.Number observedGeneration)
observedGeneration is the most recent generation observed by this autoscaler.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-