public CodeVulnerabilityDetails withCwes(String... cwes) {
        if (this.cwes == null) {
            setCwes(new java.util.ArrayList<String>(cwes.length));
        }
        for (String ele : cwes) {
            this.cwes.add(ele);
        }
        return this;
    }
<p>
The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCwes(java.util.Collection)} or {@link #withCwes(java.util.Collection)} if you want to override the
existing values.
</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