public void setThreatNames(java.util.Collection<ScanThreatName> threatNames) {
        if (threatNames == null) {
            this.threatNames = null;
            return;
        }

        this.threatNames = new java.util.ArrayList<ScanThreatName>(threatNames);
    }
<p>
List of identified threats with details, organized by threat name.
</p>

@param threatNames
       List of identified threats with details, organized by threat name.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/ThreatDetectedByName.java