public static final class EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder |
adjustmentType(EmrCreateCluster.ScalingAdjustmentType adjustmentType)
|
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty |
build()
Builds the configured instance.
|
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder |
coolDown(java.lang.Number coolDown)
Sets the value of
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.getCoolDown() |
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder |
scalingAdjustment(java.lang.Number scalingAdjustment)
|
public EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder scalingAdjustment(java.lang.Number scalingAdjustment)
scalingAdjustment
- The amount by which to scale in or scale out, based on the specified AdjustmentType. This parameter is required.
A positive value adds to the instance group's
EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be
a positive integer.this
public EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder adjustmentType(EmrCreateCluster.ScalingAdjustmentType adjustmentType)
adjustmentType
- The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered.this
public EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.Builder coolDown(java.lang.Number coolDown)
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty.getCoolDown()
coolDown
- The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.this
public EmrCreateCluster.SimpleScalingPolicyConfigurationProperty build()
EmrCreateCluster.SimpleScalingPolicyConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided