Class CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty>
- Enclosing interface:
CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty
@Stability(Stable)
public static final class CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxCapacity(Number maxCapacity) minCapacity(Number minCapacity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty.Builder maxCapacity(Number maxCapacity) - Parameters:
maxCapacity- The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.- Returns:
this
-
minCapacity
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty.Builder minCapacity(Number minCapacity) - Parameters:
minCapacity- The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty>- Returns:
- a new instance of
CfnInstanceGroupConfigPropsMixin.ScalingConstraintsProperty - Throws:
NullPointerException- if any required attribute was not provided
-