@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.
|
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.
|
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.
|
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.OnDemandProvisioningAllocationStrategy
public 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.
OnDemandProvisioningAllocationStrategy
public 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.OnDemandProvisioningAllocationStrategy
public 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.OnDemandProvisioningAllocationStrategy
public String toString()
toString
in class Object
Object.toString()
public OnDemandProvisioningSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.