public ThreatDetectedByName withThreatNames(java.util.Collection<ScanThreatName> threatNames) {
        setThreatNames(threatNames);
        return this;
    }
<p>
List of identified threats with details, organized by threat name.
</p>

@param threatNames
       List of identified threats with details, organized by threat name.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/ThreatDetectedByName.java