public void setDetections(java.util.Collection<CustomDetection> detections) {
        if (detections == null) {
            this.detections = null;
            return;
        }

        this.detections = new java.util.ArrayList<CustomDetection>(detections);
    }
<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.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/CustomDataIdentifiers.java