public SensitiveDataResult withDetections(SensitiveDataDetections... detections) {
        if (this.detections == null) {
            setDetections(new java.util.ArrayList<SensitiveDataDetections>(detections.length));
        }
        for (SensitiveDataDetections ele : detections) {
            this.detections.add(ele);
        }
        return this;
    }
<p>
The list of detected instances of sensitive data.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDetections(java.util.Collection)} or {@link #withDetections(java.util.Collection)} if you want to
override the existing values.
</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