Class CfnCluster.ScalingConstraintsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.ScalingConstraintsProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnCluster.ScalingConstraintsProperty>
- Enclosing interface:
- CfnCluster.ScalingConstraintsProperty
@Stability(Stable)
public static final class CfnCluster.ScalingConstraintsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ScalingConstraintsProperty>
A builder for 
CfnCluster.ScalingConstraintsProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.maxCapacity(Number maxCapacity) Sets the value ofCfnCluster.ScalingConstraintsProperty.getMaxCapacity()minCapacity(Number minCapacity) Sets the value ofCfnCluster.ScalingConstraintsProperty.getMinCapacity()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
maxCapacity@Stability(Stable) public CfnCluster.ScalingConstraintsProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnCluster.ScalingConstraintsProperty.getMaxCapacity()- Parameters:
- maxCapacity- The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow. This parameter is required. Scale-out activities will not add instances beyond this boundary.
- Returns:
- this
 
- 
minCapacity@Stability(Stable) public CfnCluster.ScalingConstraintsProperty.Builder minCapacity(Number minCapacity) Sets the value ofCfnCluster.ScalingConstraintsProperty.getMinCapacity()- Parameters:
- minCapacity- The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink. This parameter is required. Scale-in activities will not terminate instances below this boundary.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnCluster.ScalingConstraintsProperty>
- Returns:
- a new instance of CfnCluster.ScalingConstraintsProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-