Class SpotResizingSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.SpotResizingSpecification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SpotResizingSpecification.Builder,SpotResizingSpecification>
@Generated("software.amazon.awssdk:codegen") public final class SpotResizingSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotResizingSpecification.Builder,SpotResizingSpecification>
The resize specification for Spot Instances in the instance fleet, which contains the resize timeout period.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSpotResizingSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpotProvisioningAllocationStrategyallocationStrategy()Specifies the allocation strategy to use to launch Spot instances during a resize.StringallocationStrategyAsString()Specifies the allocation strategy to use to launch Spot instances during a resize.static SpotResizingSpecification.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SpotResizingSpecification.Builder>serializableBuilderClass()IntegertimeoutDurationMinutes()Spot resize timeout in minutes.SpotResizingSpecification.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
-
timeoutDurationMinutes
public final Integer timeoutDurationMinutes()
Spot resize timeout in minutes. If Spot Instances are not provisioned within this time, the resize workflow will stop provisioning of Spot instances. Minimum value is 5 minutes and maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
- Returns:
- Spot resize timeout in minutes. If Spot Instances are not provisioned within this time, the resize workflow will stop provisioning of Spot instances. Minimum value is 5 minutes and maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
-
allocationStrategy
public final SpotProvisioningAllocationStrategy allocationStrategy()
Specifies the allocation strategy to use to launch Spot instances during a resize. If you run Amazon EMR releases 6.9.0 or higher, the default is
price-capacity-optimized. If you run Amazon EMR releases 6.8.0 or lower, the default iscapacity-optimized.If the service returns an enum value that is not available in the current SDK version,
allocationStrategywill returnSpotProvisioningAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromallocationStrategyAsString().- Returns:
- Specifies the allocation strategy to use to launch Spot instances during a resize. If you run Amazon EMR
releases 6.9.0 or higher, the default is
price-capacity-optimized. If you run Amazon EMR releases 6.8.0 or lower, the default iscapacity-optimized. - See Also:
SpotProvisioningAllocationStrategy
-
allocationStrategyAsString
public final String allocationStrategyAsString()
Specifies the allocation strategy to use to launch Spot instances during a resize. If you run Amazon EMR releases 6.9.0 or higher, the default is
price-capacity-optimized. If you run Amazon EMR releases 6.8.0 or lower, the default iscapacity-optimized.If the service returns an enum value that is not available in the current SDK version,
allocationStrategywill returnSpotProvisioningAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromallocationStrategyAsString().- Returns:
- Specifies the allocation strategy to use to launch Spot instances during a resize. If you run Amazon EMR
releases 6.9.0 or higher, the default is
price-capacity-optimized. If you run Amazon EMR releases 6.8.0 or lower, the default iscapacity-optimized. - See Also:
SpotProvisioningAllocationStrategy
-
toBuilder
public SpotResizingSpecification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SpotResizingSpecification.Builder,SpotResizingSpecification>
-
builder
public static SpotResizingSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends SpotResizingSpecification.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
-
-