@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OnDemandProvisioningSpecification extends Object implements Serializable, Cloneable, StructuredPojo
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 versions 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR version 5.12.1 and later.
| Constructor and Description | 
|---|
| OnDemandProvisioningSpecification() | 
| Modifier and Type | Method and Description | 
|---|---|
| OnDemandProvisioningSpecification | clone() | 
| boolean | equals(Object obj) | 
| String | getAllocationStrategy()
 Specifies the strategy to use in launching On-Demand instance fleets. | 
| OnDemandCapacityReservationOptions | getCapacityReservationOptions()
 The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setAllocationStrategy(String allocationStrategy)
 Specifies the strategy to use in launching On-Demand instance fleets. | 
| void | setCapacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions)
 The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy. | 
| String | toString()Returns a string representation of this object. | 
| OnDemandProvisioningSpecification | withAllocationStrategy(OnDemandProvisioningAllocationStrategy allocationStrategy)
 Specifies the strategy to use in launching On-Demand instance fleets. | 
| OnDemandProvisioningSpecification | withAllocationStrategy(String allocationStrategy)
 Specifies the strategy to use in launching On-Demand instance fleets. | 
| OnDemandProvisioningSpecification | withCapacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions)
 The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy. | 
public void setAllocationStrategy(String 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.
 
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.OnDemandProvisioningAllocationStrategypublic String getAllocationStrategy()
 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.
 
lowest-price (the default), which launches the lowest price first.OnDemandProvisioningAllocationStrategypublic OnDemandProvisioningSpecification withAllocationStrategy(String 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.
 
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.OnDemandProvisioningAllocationStrategypublic OnDemandProvisioningSpecification withAllocationStrategy(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.
 
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.OnDemandProvisioningAllocationStrategypublic void setCapacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions)
The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
capacityReservationOptions - The launch specification for On-Demand instances in the instance fleet, which determines the allocation
        strategy.public OnDemandCapacityReservationOptions getCapacityReservationOptions()
The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
public OnDemandProvisioningSpecification withCapacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions)
The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
capacityReservationOptions - The launch specification for On-Demand instances in the instance fleet, which determines the allocation
        strategy.public String toString()
toString in class ObjectObject.toString()public OnDemandProvisioningSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.