public ResourceStatistics withTotalDetections(Long totalDetections) {
        setTotalDetections(totalDetections);
        return this;
    }
<p>
The total number of occurrences of sensitive data that Amazon Macie has found in the bucket's objects. This
includes occurrences that are currently suppressed by the sensitivity scoring settings for the bucket
(totalDetectionsSuppressed).
</p>

@param totalDetections
       The total number of occurrences of sensitive data that Amazon Macie has found in the bucket's objects.
       This includes occurrences that are currently suppressed by the sensitivity scoring settings for the bucket
       (totalDetectionsSuppressed).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/ResourceStatistics.java