public OnDemandOptionsRequest withAllocationStrategy(String allocationStrategy) {
        setAllocationStrategy(allocationStrategy);
        return this;
    }
<p>
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
</p>
<p>
<code>lowest-price</code> - EC2 Fleet uses price to determine the order, launching the lowest price first.
</p>
<p>
<code>prioritized</code> - EC2 Fleet uses the priority that you assigned to each launch template override,
launching the highest priority first.
</p>
<p>
Default: <code>lowest-price</code>
</p>

@param allocationStrategy
       The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand
       capacity.</p>
       <p>
       <code>lowest-price</code> - EC2 Fleet uses price to determine the order, launching the lowest price first.
       </p>
       <p>
       <code>prioritized</code> - EC2 Fleet uses the priority that you assigned to each launch template override,
       launching the highest priority first.
       </p>
       <p>
       Default: <code>lowest-price</code>
@return Returns a reference to this object so that method calls can be chained together.
@see FleetOnDemandAllocationStrategy
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/OnDemandOptionsRequest.java