public InstanceTypeSpecification withWeightedCapacity(Integer weightedCapacity) {
        setWeightedCapacity(weightedCapacity);
        return this;
    }
<p>
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities
defined in <a>InstanceFleetConfig</a>. Capacity values represent performance characteristics such as vCPUs,
memory, or I/O. If not specified, the default value is 1.
</p>

@param weightedCapacity
       The number of units that a provisioned instance of this type provides toward fulfilling the target
       capacities defined in <a>InstanceFleetConfig</a>. Capacity values represent performance characteristics
       such as vCPUs, memory, or I/O. If not specified, the default value is 1.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/InstanceTypeSpecification.java