Package org.cdk8s.plus25.k8s
Class HorizontalPodAutoscalerSpec.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.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.plus25.k8s.HorizontalPodAutoscalerSpec
HorizontalPodAutoscalerSpec.Builder, HorizontalPodAutoscalerSpec.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(HorizontalPodAutoscalerSpec.Builder builder)Constructor that initializes the object based on literal property values passed by theHorizontalPodAutoscalerSpec.Builder.protectedJsii$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()booleanequals(Object o)NumbergetMaxReplicas()upper limit for the number of pods that can be set by the autoscaler;NumbergetMinReplicas()minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.CrossVersionObjectReferencegetScaleTargetRef()reference to scaled resource;NumbergetTargetCpuUtilizationPercentage()target average CPU utilization (represented as a percentage of requested CPU) over all the pods;inthashCode()
-
-
-
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:HorizontalPodAutoscalerSpecupper limit for the number of pods that can be set by the autoscaler;cannot be smaller than MinReplicas.
- Specified by:
getMaxReplicasin interfaceHorizontalPodAutoscalerSpec
-
getScaleTargetRef
public final CrossVersionObjectReference getScaleTargetRef()
Description copied from interface:HorizontalPodAutoscalerSpecreference 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:
getScaleTargetRefin interfaceHorizontalPodAutoscalerSpec
-
getMinReplicas
public final Number getMinReplicas()
Description copied from interface:HorizontalPodAutoscalerSpecminReplicas 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:
getMinReplicasin interfaceHorizontalPodAutoscalerSpec
-
getTargetCpuUtilizationPercentage
public final Number getTargetCpuUtilizationPercentage()
Description copied from interface:HorizontalPodAutoscalerSpectarget 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:
getTargetCpuUtilizationPercentagein interfaceHorizontalPodAutoscalerSpec
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-