Package org.cdk8s.plus24.k8s
Class HorizontalPodAutoscalerSpec.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.k8s.HorizontalPodAutoscalerSpec.Jsii$Proxy
-
- All Implemented Interfaces:
HorizontalPodAutoscalerSpec
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- HorizontalPodAutoscalerSpec
@Stability(Stable) @Internal public static final class HorizontalPodAutoscalerSpec.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HorizontalPodAutoscalerSpec
An implementation forHorizontalPodAutoscalerSpec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.k8s.HorizontalPodAutoscalerSpec
HorizontalPodAutoscalerSpec.Builder, HorizontalPodAutoscalerSpec.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(HorizontalPodAutoscalerSpec.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpec.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
Number
getMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler;Number
getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.CrossVersionObjectReference
getScaleTargetRef()
reference to scaled resource;Number
getTargetCpuUtilizationPercentage()
target average CPU utilization (represented as a percentage of requested CPU) over all the pods;int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(HorizontalPodAutoscalerSpec.Builder builder)
Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpec.Builder
.
-
-
Method Detail
-
getMaxReplicas
public final Number getMaxReplicas()
Description copied from interface:HorizontalPodAutoscalerSpec
upper limit for the number of pods that can be set by the autoscaler;cannot be smaller than MinReplicas.
- Specified by:
getMaxReplicas
in interfaceHorizontalPodAutoscalerSpec
-
getScaleTargetRef
public final CrossVersionObjectReference getScaleTargetRef()
Description copied from interface:HorizontalPodAutoscalerSpec
reference to scaled resource;horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
- Specified by:
getScaleTargetRef
in interfaceHorizontalPodAutoscalerSpec
-
getMinReplicas
public final Number getMinReplicas()
Description copied from interface:HorizontalPodAutoscalerSpec
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.
- Specified by:
getMinReplicas
in interfaceHorizontalPodAutoscalerSpec
-
getTargetCpuUtilizationPercentage
public final Number getTargetCpuUtilizationPercentage()
Description copied from interface:HorizontalPodAutoscalerSpec
target average CPU utilization (represented as a percentage of requested CPU) over all the pods;if not specified the default autoscaling policy will be used.
- Specified by:
getTargetCpuUtilizationPercentage
in interfaceHorizontalPodAutoscalerSpec
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-