Class ManagedScalingPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.ManagedScalingPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceManagedScalingPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedScalingPolicy.Builderbuilder()ComputeLimitscomputeLimits()The Amazon EC2 unit limits for a managed scaling policy.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ScalingStrategyscalingStrategy()Determines whether a custom scaling utilization performance index can be set.StringscalingStrategyAsString()Determines whether a custom scaling utilization performance index can be set.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ManagedScalingPolicy.Builder>serializableBuilderClass()ManagedScalingPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerutilizationPerformanceIndex()An integer value that represents an advanced scaling strategy.-
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
-
computeLimits
public final ComputeLimits computeLimits()
The Amazon 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.
- Returns:
- The Amazon 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.
-
utilizationPerformanceIndex
public final Integer utilizationPerformanceIndex()
An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.
- Returns:
- An integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.
-
scalingStrategy
public final ScalingStrategy scalingStrategy()
Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.
If the service returns an enum value that is not available in the current SDK version,
scalingStrategywill returnScalingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscalingStrategyAsString().- Returns:
- Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.
- See Also:
ScalingStrategy
-
scalingStrategyAsString
public final String scalingStrategyAsString()
Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.
If the service returns an enum value that is not available in the current SDK version,
scalingStrategywill returnScalingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscalingStrategyAsString().- Returns:
- Determines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT.
- See Also:
ScalingStrategy
-
toBuilder
public ManagedScalingPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ManagedScalingPolicy.Builder,ManagedScalingPolicy>
-
builder
public static ManagedScalingPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ManagedScalingPolicy.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
-
-