@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 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.
| 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. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the
instances with the highest priority first. The default is lowest-price.
allocationStrategy - Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should
launch the instances with the highest priority first. The default is lowest-price.OnDemandProvisioningAllocationStrategypublic String getAllocationStrategy()
Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the
instances with the highest priority first. The default is lowest-price.
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should
launch the instances with the highest priority first. The default is lowest-price.OnDemandProvisioningAllocationStrategypublic OnDemandProvisioningSpecification withAllocationStrategy(String allocationStrategy)
Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the
instances with the highest priority first. The default is lowest-price.
allocationStrategy - Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should
launch the instances with the highest priority first. The default is lowest-price.OnDemandProvisioningAllocationStrategypublic OnDemandProvisioningSpecification withAllocationStrategy(OnDemandProvisioningAllocationStrategy allocationStrategy)
Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the
instances with the highest priority first. The default is lowest-price.
allocationStrategy - Specifies the strategy to use in launching On-Demand instance fleets. Available options are
lowest-price and prioritized. lowest-price specifies to launch the
instances with the lowest price first, and prioritized specifies that Amazon EMR should
launch the instances with the highest priority first. The default is lowest-price.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.