Class CfnNodegroup.WarmPoolConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnNodegroup.WarmPoolConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodegroup.WarmPoolConfigProperty>
- Enclosing interface:
CfnNodegroup.WarmPoolConfigProperty
@Stability(Stable)
public static final class CfnNodegroup.WarmPoolConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodegroup.WarmPoolConfigProperty>
A builder for
CfnNodegroup.WarmPoolConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getEnabled()maxGroupPreparedCapacity(Number maxGroupPreparedCapacity) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getMaxGroupPreparedCapacity()Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getMinSize()Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getPoolState()reuseOnScaleIn(Boolean reuseOnScaleIn) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getReuseOnScaleIn()reuseOnScaleIn(IResolvable reuseOnScaleIn) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getReuseOnScaleIn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getEnabled()- Parameters:
enabled- Enable or disable warm pool for the node group.- Returns:
this
-
enabled
Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getEnabled()- Parameters:
enabled- Enable or disable warm pool for the node group.- Returns:
this
-
maxGroupPreparedCapacity
@Stability(Stable) public CfnNodegroup.WarmPoolConfigProperty.Builder maxGroupPreparedCapacity(Number maxGroupPreparedCapacity) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getMaxGroupPreparedCapacity()- Parameters:
maxGroupPreparedCapacity- The maximum number of instances that are allowed to be in the warm pool.- Returns:
this
-
minSize
Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getMinSize()- Parameters:
minSize- The minimum number of instances to maintain in the warm pool.- Returns:
this
-
poolState
Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getPoolState()- Parameters:
poolState- The desired state of warm pool instances.- Returns:
this
-
reuseOnScaleIn
@Stability(Stable) public CfnNodegroup.WarmPoolConfigProperty.Builder reuseOnScaleIn(Boolean reuseOnScaleIn) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getReuseOnScaleIn()- Parameters:
reuseOnScaleIn- Whether to return instances to the warm pool during scale-in instead of terminating them.- Returns:
this
-
reuseOnScaleIn
@Stability(Stable) public CfnNodegroup.WarmPoolConfigProperty.Builder reuseOnScaleIn(IResolvable reuseOnScaleIn) Sets the value ofCfnNodegroup.WarmPoolConfigProperty.getReuseOnScaleIn()- Parameters:
reuseOnScaleIn- Whether to return instances to the warm pool during scale-in instead of terminating them.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodegroup.WarmPoolConfigProperty>- Returns:
- a new instance of
CfnNodegroup.WarmPoolConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-