public CisTargetResourceAggregation withStatusCounts(StatusCounts statusCounts) {
        setStatusCounts(statusCounts);
        return this;
    }
<p>
The target resource status counts.
</p>

@param statusCounts
       The target resource status counts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/CisTargetResourceAggregation.java