Package org.cdk8s.plus24.k8s
Class HpaScalingPolicyV2Beta2.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.HpaScalingPolicyV2Beta2.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HpaScalingPolicyV2Beta2>
- Enclosing interface:
- HpaScalingPolicyV2Beta2
@Stability(Stable) public static final class HpaScalingPolicyV2Beta2.Builder extends Object implements software.amazon.jsii.Builder<HpaScalingPolicyV2Beta2>
A builder forHpaScalingPolicyV2Beta2
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HpaScalingPolicyV2Beta2
build()
Builds the configured instance.HpaScalingPolicyV2Beta2.Builder
periodSeconds(Number periodSeconds)
Sets the value ofHpaScalingPolicyV2Beta2.getPeriodSeconds()
HpaScalingPolicyV2Beta2.Builder
type(String type)
Sets the value ofHpaScalingPolicyV2Beta2.getType()
HpaScalingPolicyV2Beta2.Builder
value(Number value)
Sets the value ofHpaScalingPolicyV2Beta2.getValue()
-
-
-
Method Detail
-
periodSeconds
@Stability(Stable) public HpaScalingPolicyV2Beta2.Builder periodSeconds(Number periodSeconds)
Sets the value ofHpaScalingPolicyV2Beta2.getPeriodSeconds()
- Parameters:
periodSeconds
- PeriodSeconds specifies the window of time for which the policy should hold true. This parameter is required. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).- Returns:
this
-
type
@Stability(Stable) public HpaScalingPolicyV2Beta2.Builder type(String type)
Sets the value ofHpaScalingPolicyV2Beta2.getType()
- Parameters:
type
- Type is used to specify the scaling policy. This parameter is required.- Returns:
this
-
value
@Stability(Stable) public HpaScalingPolicyV2Beta2.Builder value(Number value)
Sets the value ofHpaScalingPolicyV2Beta2.getValue()
- Parameters:
value
- Value contains the amount of change which is permitted by the policy. This parameter is required. It must be greater than zero- Returns:
this
-
build
@Stability(Stable) public HpaScalingPolicyV2Beta2 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HpaScalingPolicyV2Beta2>
- Returns:
- a new instance of
HpaScalingPolicyV2Beta2
- Throws:
NullPointerException
- if any required attribute was not provided
-
-