public static final class EmrCreateCluster.ScalingConstraintsProperty.Builder
extends java.lang.Object
EmrCreateCluster.ScalingConstraintsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EmrCreateCluster.ScalingConstraintsProperty |
build()
Builds the configured instance.
|
EmrCreateCluster.ScalingConstraintsProperty.Builder |
maxCapacity(java.lang.Number maxCapacity)
Sets the value of
EmrCreateCluster.ScalingConstraintsProperty.getMaxCapacity() |
EmrCreateCluster.ScalingConstraintsProperty.Builder |
minCapacity(java.lang.Number minCapacity)
Sets the value of
EmrCreateCluster.ScalingConstraintsProperty.getMinCapacity() |
public EmrCreateCluster.ScalingConstraintsProperty.Builder maxCapacity(java.lang.Number maxCapacity)
EmrCreateCluster.ScalingConstraintsProperty.getMaxCapacity()
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.this
public EmrCreateCluster.ScalingConstraintsProperty.Builder minCapacity(java.lang.Number minCapacity)
EmrCreateCluster.ScalingConstraintsProperty.getMinCapacity()
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.this
public EmrCreateCluster.ScalingConstraintsProperty build()
EmrCreateCluster.ScalingConstraintsProperty
java.lang.NullPointerException
- if any required attribute was not provided