Class OnDemandProvisioningSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.emr.model.OnDemandProvisioningSpecification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<OnDemandProvisioningSpecification.Builder,OnDemandProvisioningSpecification>
@Generated("software.amazon.awssdk:codegen") public final class OnDemandProvisioningSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OnDemandProvisioningSpecification.Builder,OnDemandProvisioningSpecification>
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOnDemandProvisioningSpecification.Builder
-
Method Summary
-
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
-
allocationStrategy
public final OnDemandProvisioningAllocationStrategy allocationStrategy()
Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-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 strategy to use in launching On-Demand instance fleets. Available options are
lowest-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price. - See Also:
OnDemandProvisioningAllocationStrategy
-
allocationStrategyAsString
public final String allocationStrategyAsString()
Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-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 strategy to use in launching On-Demand instance fleets. Available options are
lowest-priceandprioritized.lowest-pricespecifies to launch the instances with the lowest price first, andprioritizedspecifies that Amazon EMR should launch the instances with the highest priority first. The default islowest-price. - See Also:
OnDemandProvisioningAllocationStrategy
-
capacityReservationOptions
public final OnDemandCapacityReservationOptions capacityReservationOptions()
The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
- Returns:
- The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
-
toBuilder
public OnDemandProvisioningSpecification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<OnDemandProvisioningSpecification.Builder,OnDemandProvisioningSpecification>
-
builder
public static OnDemandProvisioningSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends OnDemandProvisioningSpecification.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
-
-