public CustomDataIdentifiers withDetections(java.util.Collection<CustomDetection> detections) {
        setDetections(detections);
        return this;
    }
<p>
The custom data identifiers that detected the data, and the number of occurrences of the data that each
identifier detected.
</p>

@param detections
       The custom data identifiers that detected the data, and the number of occurrences of the data that each
       identifier detected.
@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/CustomDataIdentifiers.java