Class CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty>
- Enclosing interface:
CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty
@Stability(Stable)
public static final class CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.constraints(IResolvable constraints) Sets the value ofCfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.getRules()rules(IResolvable rules) Sets the value ofCfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
constraints
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder constraints(IResolvable constraints) - 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 CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder constraints(CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty constraints) - 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 CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder rules(IResolvable rules) Sets the value ofCfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.getRules()- Parameters:
rules- The scale-in and scale-out rules that comprise the automatic scaling policy.- Returns:
this
-
rules
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty.Builder rules(List<? extends Object> rules) Sets the value ofCfnInstanceGroupConfigPropsMixin.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<CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty>- Returns:
- a new instance of
CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-