public AwsSecurityFinding withThreats(java.util.Collection<Threat> threats) {
        setThreats(threats);
        return this;
    }
<p>
Details about the threat detected in a security finding and the file paths that were affected by the threat.
</p>
<p>
Array Members: Minimum number of 1 item. Maximum number of 32 items.
</p>

@param threats
       Details about the threat detected in a security finding and the file paths that were affected by the
       threat. </p>
       <p>
       Array Members: Minimum number of 1 item. Maximum number of 32 items.
@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/AwsSecurityFinding.java