Package org.cdk8s.plus24.k8s
Class HorizontalPodAutoscalerBehaviorV2Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.HorizontalPodAutoscalerBehaviorV2Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HorizontalPodAutoscalerBehaviorV2Beta2>
- Enclosing interface:
- HorizontalPodAutoscalerBehaviorV2Beta2
@Stability(Stable) public static final class HorizontalPodAutoscalerBehaviorV2Beta2.Builder extends Object implements software.amazon.jsii.Builder<HorizontalPodAutoscalerBehaviorV2Beta2>
A builder forHorizontalPodAutoscalerBehaviorV2Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HorizontalPodAutoscalerBehaviorV2Beta2
build()
Builds the configured instance.HorizontalPodAutoscalerBehaviorV2Beta2.Builder
scaleDown(HpaScalingRulesV2Beta2 scaleDown)
Sets the value ofHorizontalPodAutoscalerBehaviorV2Beta2.getScaleDown()
HorizontalPodAutoscalerBehaviorV2Beta2.Builder
scaleUp(HpaScalingRulesV2Beta2 scaleUp)
Sets the value ofHorizontalPodAutoscalerBehaviorV2Beta2.getScaleUp()
-
-
-
Method Detail
-
scaleDown
@Stability(Stable) public HorizontalPodAutoscalerBehaviorV2Beta2.Builder scaleDown(HpaScalingRulesV2Beta2 scaleDown)
Sets the value ofHorizontalPodAutoscalerBehaviorV2Beta2.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 HorizontalPodAutoscalerBehaviorV2Beta2.Builder scaleUp(HpaScalingRulesV2Beta2 scaleUp)
Sets the value ofHorizontalPodAutoscalerBehaviorV2Beta2.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 HorizontalPodAutoscalerBehaviorV2Beta2 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HorizontalPodAutoscalerBehaviorV2Beta2>
- Returns:
- a new instance of
HorizontalPodAutoscalerBehaviorV2Beta2
- Throws:
NullPointerException
- if any required attribute was not provided
-
-