public static final class CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder
extends java.lang.Object
CfnInstanceGroupConfig.ScalingConstraintsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnInstanceGroupConfig.ScalingConstraintsProperty |
build()
Builds the configured instance.
|
CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder |
maxCapacity(java.lang.Number maxCapacity)
Sets the value of
CfnInstanceGroupConfig.ScalingConstraintsProperty.getMaxCapacity() |
CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder |
minCapacity(java.lang.Number minCapacity)
Sets the value of
CfnInstanceGroupConfig.ScalingConstraintsProperty.getMinCapacity() |
public CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder maxCapacity(java.lang.Number maxCapacity)
CfnInstanceGroupConfig.ScalingConstraintsProperty.getMaxCapacity()
maxCapacity
- The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. This parameter is required.
Scale-out activities will not add instances beyond this boundary.this
public CfnInstanceGroupConfig.ScalingConstraintsProperty.Builder minCapacity(java.lang.Number minCapacity)
CfnInstanceGroupConfig.ScalingConstraintsProperty.getMinCapacity()
minCapacity
- The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. This parameter is required.
Scale-in activities will not terminate instances below this boundary.this
public CfnInstanceGroupConfig.ScalingConstraintsProperty build()
CfnInstanceGroupConfig.ScalingConstraintsProperty
java.lang.NullPointerException
- if any required attribute was not provided