@Generated(value="software.amazon.awssdk:codegen") public final class ManagedScalingPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>
Managed scaling policy for an Amazon EMR cluster. The policy specifies the limits for resources that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
Modifier and Type | Class and Description |
---|---|
static interface |
ManagedScalingPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static ManagedScalingPolicy.Builder |
builder() |
ComputeLimits |
computeLimits()
The EC2 unit limits for a managed scaling policy.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ManagedScalingPolicy.Builder> |
serializableBuilderClass() |
ManagedScalingPolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final ComputeLimits computeLimits()
The EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
public ManagedScalingPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>
public static ManagedScalingPolicy.Builder builder()
public static Class<? extends ManagedScalingPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()