public static final class EmrCreateCluster.AutoScalingPolicyProperty.Builder
extends java.lang.Object
EmrCreateCluster.AutoScalingPolicyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EmrCreateCluster.AutoScalingPolicyProperty |
build()
Builds the configured instance.
|
EmrCreateCluster.AutoScalingPolicyProperty.Builder |
constraints(EmrCreateCluster.ScalingConstraintsProperty constraints)
Sets the value of
EmrCreateCluster.AutoScalingPolicyProperty.getConstraints() |
EmrCreateCluster.AutoScalingPolicyProperty.Builder |
rules(java.util.List<? extends EmrCreateCluster.ScalingRuleProperty> rules)
Sets the value of
EmrCreateCluster.AutoScalingPolicyProperty.getRules() |
public EmrCreateCluster.AutoScalingPolicyProperty.Builder constraints(EmrCreateCluster.ScalingConstraintsProperty constraints)
EmrCreateCluster.AutoScalingPolicyProperty.getConstraints()
constraints
- The upper and lower EC2 instance limits for an automatic scaling policy. This parameter is required.
Automatic scaling activity will not cause an instance
group to grow above or below these limits.this
public EmrCreateCluster.AutoScalingPolicyProperty.Builder rules(java.util.List<? extends EmrCreateCluster.ScalingRuleProperty> rules)
EmrCreateCluster.AutoScalingPolicyProperty.getRules()
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy. This parameter is required.this
public EmrCreateCluster.AutoScalingPolicyProperty build()
EmrCreateCluster.AutoScalingPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided