public Integer getTargetSpotCapacity() {
        return this.targetSpotCapacity;
    }
<p>
The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision.
When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by
<a>InstanceTypeConfig</a>. Each instance configuration has a specified <code>WeightedCapacity</code>. When a Spot
Instance is provisioned, the <code>WeightedCapacity</code> units count toward the target capacity. Amazon EMR
provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For
example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
<code>WeightedCapacity</code> of 5 units, the instance is provisioned, and the target capacity is exceeded by 3
units.
</p>
<note>
<p>
If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of
<code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> should be greater than 0. For a master
instance fleet, only one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> can be
specified, and its value must be 1.
</p>
</note>

@return The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to
        provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by
        <a>InstanceTypeConfig</a>. Each instance configuration has a specified <code>WeightedCapacity</code>.
        When a Spot Instance is provisioned, the <code>WeightedCapacity</code> units count toward the target
        capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this
        results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR
        can only provision an instance with a <code>WeightedCapacity</code> of 5 units, the instance is
        provisioned, and the target capacity is exceeded by 3 units.</p> <note>
        <p>
        If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least
        one of <code>TargetSpotCapacity</code> and <code>TargetOnDemandCapacity</code> should be greater than 0.
        For a master instance fleet, only one of <code>TargetSpotCapacity</code> and
        <code>TargetOnDemandCapacity</code> can be specified, and its value must be 1.
        </p>
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceFleetConfig.java