Class CfnWarmPool.InstanceReusePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnWarmPool.InstanceReusePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWarmPool.InstanceReusePolicyProperty>
- Enclosing interface:
CfnWarmPool.InstanceReusePolicyProperty
@Stability(Stable)
public static final class CfnWarmPool.InstanceReusePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWarmPool.InstanceReusePolicyProperty>
A builder for
CfnWarmPool.InstanceReusePolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.reuseOnScaleIn
(Boolean reuseOnScaleIn) Sets the value ofCfnWarmPool.InstanceReusePolicyProperty.getReuseOnScaleIn()
reuseOnScaleIn
(IResolvable reuseOnScaleIn) Sets the value ofCfnWarmPool.InstanceReusePolicyProperty.getReuseOnScaleIn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
reuseOnScaleIn
@Stability(Stable) public CfnWarmPool.InstanceReusePolicyProperty.Builder reuseOnScaleIn(Boolean reuseOnScaleIn) Sets the value ofCfnWarmPool.InstanceReusePolicyProperty.getReuseOnScaleIn()
- Parameters:
reuseOnScaleIn
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.- Returns:
this
-
reuseOnScaleIn
@Stability(Stable) public CfnWarmPool.InstanceReusePolicyProperty.Builder reuseOnScaleIn(IResolvable reuseOnScaleIn) Sets the value ofCfnWarmPool.InstanceReusePolicyProperty.getReuseOnScaleIn()
- Parameters:
reuseOnScaleIn
- Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWarmPool.InstanceReusePolicyProperty>
- Returns:
- a new instance of
CfnWarmPool.InstanceReusePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-