Class CfnComputeNodeGroup.ScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.ScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.ScalingConfigurationProperty>
- Enclosing interface:
CfnComputeNodeGroup.ScalingConfigurationProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.ScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.ScalingConfigurationProperty>
A builder for
CfnComputeNodeGroup.ScalingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxInstanceCount(Number maxInstanceCount) Sets the value ofCfnComputeNodeGroup.ScalingConfigurationProperty.getMaxInstanceCount()minInstanceCount(Number minInstanceCount) Sets the value ofCfnComputeNodeGroup.ScalingConfigurationProperty.getMinInstanceCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxInstanceCount
@Stability(Stable) public CfnComputeNodeGroup.ScalingConfigurationProperty.Builder maxInstanceCount(Number maxInstanceCount) Sets the value ofCfnComputeNodeGroup.ScalingConfigurationProperty.getMaxInstanceCount()- Parameters:
maxInstanceCount- The upper bound of the number of instances allowed in the compute fleet. This parameter is required.- Returns:
this
-
minInstanceCount
@Stability(Stable) public CfnComputeNodeGroup.ScalingConfigurationProperty.Builder minInstanceCount(Number minInstanceCount) Sets the value ofCfnComputeNodeGroup.ScalingConfigurationProperty.getMinInstanceCount()- Parameters:
minInstanceCount- The lower bound of the number of instances allowed in the compute fleet. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.ScalingConfigurationProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.ScalingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-