public SensitiveDataResult withDetections(java.util.Collection<SensitiveDataDetections> detections) {
        setDetections(detections);
        return this;
    }
<p>
The list of detected instances of sensitive data.
</p>

@param detections
       The list of detected instances of sensitive data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/SensitiveDataResult.java