public CodeVulnerabilityDetails withCwes(java.util.Collection<String> cwes) {
        setCwes(cwes);
        return this;
    }
<p>
The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
</p>

@param cwes
       The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/CodeVulnerabilityDetails.java