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