public void setCountsByGroup(java.util.Collection<GroupCount> countsByGroup) {
        if (countsByGroup == null) {
            this.countsByGroup = null;
            return;
        }

        this.countsByGroup = new java.util.ArrayList<GroupCount>(countsByGroup);
    }
<p>
An array of objects, one for each group of findings that matches the filter criteria specified in the request.
</p>

@param countsByGroup
       An array of objects, one for each group of findings that matches the filter criteria specified in the
       request.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/GetFindingStatisticsResult.java