public SpotOptionsRequest withInstancePoolsToUseCount(Integer instancePoolsToUseCount) {
        setInstancePoolsToUseCount(instancePoolsToUseCount);
        return this;
    }
<p>
The number of Spot pools across which to allocate your target Spot capacity. Supported only when Spot
<code>AllocationStrategy</code> is set to <code>lowest-price</code>. EC2 Fleet selects the cheapest Spot pools
and evenly allocates your target Spot capacity across the number of Spot pools that you specify.
</p>
<p>
Note that EC2 Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort
basis. If a pool runs out of Spot capacity before fulfilling your target capacity, EC2 Fleet will continue to
fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you
might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the
pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that
you specified.
</p>

@param instancePoolsToUseCount
       The number of Spot pools across which to allocate your target Spot capacity. Supported only when Spot
       <code>AllocationStrategy</code> is set to <code>lowest-price</code>. EC2 Fleet selects the cheapest Spot
       pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.</p>
       <p>
       Note that EC2 Fleet attempts to draw Spot Instances from the number of pools that you specify on a best
       effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, EC2 Fleet will
       continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target
       capacity is met, you might receive Spot Instances from more than the number of pools that you specified.
       Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from
       fewer than the number of pools that you specified.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SpotOptionsRequest.java