Class OnDemandResizingSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.OnDemandResizingSpecification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OnDemandResizingSpecification.Builder,OnDemandResizingSpecification>
@Generated("software.amazon.awssdk:codegen") public final class OnDemandResizingSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OnDemandResizingSpecification.Builder,OnDemandResizingSpecification>
The resize specification for On-Demand 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 interfaceOnDemandResizingSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OnDemandProvisioningAllocationStrategyallocationStrategy()Specifies the allocation strategy to use to launch On-Demand instances during a resize.StringallocationStrategyAsString()Specifies the allocation strategy to use to launch On-Demand instances during a resize.static OnDemandResizingSpecification.Builderbuilder()OnDemandCapacityReservationOptionscapacityReservationOptions()Returns the value of the CapacityReservationOptions property for this object.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 OnDemandResizingSpecification.Builder>serializableBuilderClass()IntegertimeoutDurationMinutes()On-Demand resize timeout in minutes.OnDemandResizingSpecification.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()
On-Demand resize timeout in minutes. If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the 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:
- On-Demand resize timeout in minutes. If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the 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 OnDemandProvisioningAllocationStrategy allocationStrategy()
Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is
lowest-price.If the service returns an enum value that is not available in the current SDK version,
allocationStrategywill returnOnDemandProvisioningAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromallocationStrategyAsString().- Returns:
- Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is
lowest-price. - See Also:
OnDemandProvisioningAllocationStrategy
-
allocationStrategyAsString
public final String allocationStrategyAsString()
Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is
lowest-price.If the service returns an enum value that is not available in the current SDK version,
allocationStrategywill returnOnDemandProvisioningAllocationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromallocationStrategyAsString().- Returns:
- Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is
lowest-price. - See Also:
OnDemandProvisioningAllocationStrategy
-
capacityReservationOptions
public final OnDemandCapacityReservationOptions capacityReservationOptions()
Returns the value of the CapacityReservationOptions property for this object.- Returns:
- The value of the CapacityReservationOptions property for this object.
-
toBuilder
public OnDemandResizingSpecification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OnDemandResizingSpecification.Builder,OnDemandResizingSpecification>
-
builder
public static OnDemandResizingSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends OnDemandResizingSpecification.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
-
-