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