public void setInstanceCounts(java.util.Collection<InstanceCount> instanceCounts) {
        if (instanceCounts == null) {
            this.instanceCounts = null;
            return;
        }

        this.instanceCounts = new com.amazonaws.internal.SdkInternalList<InstanceCount>(instanceCounts);
    }
<p>
The number of instances in this state.
</p>

@param instanceCounts
       The number of instances in this state.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ReservedInstancesListing.java