public static final class CfnCluster.AutoScalingPolicyProperty.Builder
extends java.lang.Object
CfnCluster.AutoScalingPolicyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCluster.AutoScalingPolicyProperty |
build()
Builds the configured instance.
|
CfnCluster.AutoScalingPolicyProperty.Builder |
constraints(CfnCluster.ScalingConstraintsProperty constraints)
Sets the value of
CfnCluster.AutoScalingPolicyProperty.getConstraints() |
CfnCluster.AutoScalingPolicyProperty.Builder |
constraints(IResolvable constraints)
Sets the value of
CfnCluster.AutoScalingPolicyProperty.getConstraints() |
CfnCluster.AutoScalingPolicyProperty.Builder |
rules(IResolvable rules)
Sets the value of
CfnCluster.AutoScalingPolicyProperty.getRules() |
CfnCluster.AutoScalingPolicyProperty.Builder |
rules(java.util.List<? extends java.lang.Object> rules)
Sets the value of
CfnCluster.AutoScalingPolicyProperty.getRules() |
public CfnCluster.AutoScalingPolicyProperty.Builder constraints(IResolvable constraints)
CfnCluster.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 CfnCluster.AutoScalingPolicyProperty.Builder constraints(CfnCluster.ScalingConstraintsProperty constraints)
CfnCluster.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 CfnCluster.AutoScalingPolicyProperty.Builder rules(IResolvable rules)
CfnCluster.AutoScalingPolicyProperty.getRules()
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy. This parameter is required.this
public CfnCluster.AutoScalingPolicyProperty.Builder rules(java.util.List<? extends java.lang.Object> rules)
CfnCluster.AutoScalingPolicyProperty.getRules()
rules
- The scale-in and scale-out rules that comprise the automatic scaling policy. This parameter is required.this
public CfnCluster.AutoScalingPolicyProperty build()
CfnCluster.AutoScalingPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided