Package org.cdk8s.plus24.k8s
Class HorizontalPodAutoscalerBehaviorV2.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.HorizontalPodAutoscalerBehaviorV2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HorizontalPodAutoscalerBehaviorV2>
- Enclosing interface:
- HorizontalPodAutoscalerBehaviorV2
@Stability(Stable) public static final class HorizontalPodAutoscalerBehaviorV2.Builder extends Object implements software.amazon.jsii.Builder<HorizontalPodAutoscalerBehaviorV2>
A builder forHorizontalPodAutoscalerBehaviorV2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HorizontalPodAutoscalerBehaviorV2
build()
Builds the configured instance.HorizontalPodAutoscalerBehaviorV2.Builder
scaleDown(HpaScalingRulesV2 scaleDown)
Sets the value ofHorizontalPodAutoscalerBehaviorV2.getScaleDown()
HorizontalPodAutoscalerBehaviorV2.Builder
scaleUp(HpaScalingRulesV2 scaleUp)
Sets the value ofHorizontalPodAutoscalerBehaviorV2.getScaleUp()
-
-
-
Method Detail
-
scaleDown
@Stability(Stable) public HorizontalPodAutoscalerBehaviorV2.Builder scaleDown(HpaScalingRulesV2 scaleDown)
Sets the value ofHorizontalPodAutoscalerBehaviorV2.getScaleDown()
- Parameters:
scaleDown
- scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).- Returns:
this
-
scaleUp
@Stability(Stable) public HorizontalPodAutoscalerBehaviorV2.Builder scaleUp(HpaScalingRulesV2 scaleUp)
Sets the value ofHorizontalPodAutoscalerBehaviorV2.getScaleUp()
- Parameters:
scaleUp
- scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:- increase no more than 4 pods per 60 seconds
- double the number of pods per 60 seconds No stabilization is used.
- Returns:
this
-
build
@Stability(Stable) public HorizontalPodAutoscalerBehaviorV2 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HorizontalPodAutoscalerBehaviorV2>
- Returns:
- a new instance of
HorizontalPodAutoscalerBehaviorV2
- Throws:
NullPointerException
- if any required attribute was not provided
-
-