Class CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfig.ScalingConstraintsProperty>
- Enclosing interface:
CfnInstanceGroupConfig.ScalingConstraintsProperty
@Stability(Stable)
public static final class CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfig.ScalingConstraintsProperty>
A builder for
CfnInstanceGroupConfig.ScalingConstraintsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxCapacity
(Number maxCapacity) Sets the value ofCfnInstanceGroupConfig.ScalingConstraintsProperty.getMaxCapacity()
minCapacity
(Number minCapacity) Sets the value ofCfnInstanceGroupConfig.ScalingConstraintsProperty.getMinCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnInstanceGroupConfig.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 CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder minCapacity(Number minCapacity) Sets the value ofCfnInstanceGroupConfig.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfig.ScalingConstraintsProperty>
- Returns:
- a new instance of
CfnInstanceGroupConfig.ScalingConstraintsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-