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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OnDemandProvisioningAllocationStrategyallocationStrategy()Specifies the strategy to use in launching On-Demand instance fleets.StringallocationStrategyAsString()Specifies the strategy to use in launching On-Demand instance fleets.static OnDemandProvisioningSpecification.Builderbuilder()OnDemandCapacityReservationOptionscapacityReservationOptions()The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends OnDemandProvisioningSpecification.Builder>serializableBuilderClass()OnDemandProvisioningSpecification.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
-
allocationStrategy
public final OnDemandProvisioningAllocationStrategy allocationStrategy()
Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is
lowest-price(the default), which launches the lowest price first.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. Currently, the only option is
lowest-price(the default), which launches the lowest price first. - See Also:
OnDemandProvisioningAllocationStrategy
-
allocationStrategyAsString
public final String allocationStrategyAsString()
Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is
lowest-price(the default), which launches the lowest price first.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. Currently, the only option is
lowest-price(the default), which launches the lowest price first. - 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.
-
-