Class ComputeScalingPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.batch.model.ComputeScalingPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ComputeScalingPolicy.Builder,ComputeScalingPolicy>
@Generated("software.amazon.awssdk:codegen") public final class ComputeScalingPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComputeScalingPolicy.Builder,ComputeScalingPolicy>
An object that represents a scaling policy for a compute environment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceComputeScalingPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComputeScalingPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerminScaleDownDelayMinutes()The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ComputeScalingPolicy.Builder>serializableBuilderClass()ComputeScalingPolicy.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
-
minScaleDownDelayMinutes
public final Integer minScaleDownDelayMinutes()
The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires.
Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.
The scale down delay does not apply to:
-
Instances being replaced during infrastructure updates
-
Newly launched instances that have not yet run any jobs
-
Spot instances reclaimed due to interruption
- Returns:
- The minimum time (in minutes) that Batch keeps instances running in the compute environment after their
jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are
placed on the instance during this delay, Batch terminates the instance once the delay expires.
Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.
The scale down delay does not apply to:
-
Instances being replaced during infrastructure updates
-
Newly launched instances that have not yet run any jobs
-
Spot instances reclaimed due to interruption
-
-
-
toBuilder
public ComputeScalingPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ComputeScalingPolicy.Builder,ComputeScalingPolicy>
-
builder
public static ComputeScalingPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ComputeScalingPolicy.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
-
-