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