public TargetCapacitySpecificationRequest withTargetCapacityUnitType(String targetCapacityUnitType) {
        setTargetCapacityUnitType(targetCapacityUnitType);
        return this;
    }
<p>
The unit for the target capacity. You can specify this parameter only when using attributed-based instance type
selection.
</p>
<p>
Default: <code>units</code> (the number of instances)
</p>

@param targetCapacityUnitType
       The unit for the target capacity. You can specify this parameter only when using attributed-based instance
       type selection.</p>
       <p>
       Default: <code>units</code> (the number of instances)
@return Returns a reference to this object so that method calls can be chained together.
@see TargetCapacityUnitType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TargetCapacitySpecificationRequest.java