Class ScalingConstraints
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.ScalingConstraints
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ScalingConstraints.Builder,ScalingConstraints>
@Generated("software.amazon.awssdk:codegen") public final class ScalingConstraints extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScalingConstraints.Builder,ScalingConstraints>
The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activities triggered by automatic scaling rules will not cause an instance group to grow above or below these limits.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScalingConstraints.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScalingConstraints.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxCapacity()The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow.IntegerminCapacity()The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ScalingConstraints.Builder>serializableBuilderClass()ScalingConstraints.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
minCapacity
public final Integer 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:
- 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.
-
maxCapacity
public final Integer 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:
- 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.
-
toBuilder
public ScalingConstraints.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ScalingConstraints.Builder,ScalingConstraints>
-
builder
public static ScalingConstraints.Builder builder()
-
serializableBuilderClass
public static Class<? extends ScalingConstraints.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-