Class CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.AutoScalingPolicyProperty>
- Enclosing interface:
CfnClusterPropsMixin.AutoScalingPolicyProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.AutoScalingPolicyProperty>
A builder for
CfnClusterPropsMixin.AutoScalingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getConstraints()constraints(IResolvable constraints) Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getConstraints()Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getRules()rules(IResolvable rules) Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
constraints
@Stability(Stable) public CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder constraints(IResolvable constraints) Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getConstraints()- Parameters:
constraints- The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.- Returns:
this
-
constraints
@Stability(Stable) public CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder constraints(CfnClusterPropsMixin.ScalingConstraintsProperty constraints) Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getConstraints()- Parameters:
constraints- The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.- Returns:
this
-
rules
@Stability(Stable) public CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder rules(IResolvable rules) Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getRules()- Parameters:
rules- The scale-in and scale-out rules that comprise the automatic scaling policy.- Returns:
this
-
rules
@Stability(Stable) public CfnClusterPropsMixin.AutoScalingPolicyProperty.Builder rules(List<? extends Object> rules) Sets the value ofCfnClusterPropsMixin.AutoScalingPolicyProperty.getRules()- Parameters:
rules- The scale-in and scale-out rules that comprise the automatic scaling policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.AutoScalingPolicyProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.AutoScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-