public Integer getTargetOnDemandCapacity() {
        return this.targetOnDemandCapacity;
    }
<p>
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to
provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by
<a>InstanceTypeConfig</a>. Each instance configuration has a specified <code>WeightedCapacity</code>. When an
On-Demand 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 Spot Instances are provisioned for the instance fleet using
<code>TargetSpotCapacity</code>. 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 On-Demand units for the instance fleet, which determines how many On-Demand
        Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand
        Instances as specified by <a>InstanceTypeConfig</a>. Each instance configuration has a specified
        <code>WeightedCapacity</code>. When an On-Demand 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 Spot Instances are provisioned for the instance fleet using
        <code>TargetSpotCapacity</code>. 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