public PackageVulnerabilityDetails withVulnerablePackages(VulnerablePackage... vulnerablePackages) {
        if (this.vulnerablePackages == null) {
            setVulnerablePackages(new java.util.ArrayList<VulnerablePackage>(vulnerablePackages.length));
        }
        for (VulnerablePackage ele : vulnerablePackages) {
            this.vulnerablePackages.add(ele);
        }
        return this;
    }
<p>
The packages impacted by this vulnerability.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVulnerablePackages(java.util.Collection)} or {@link #withVulnerablePackages(java.util.Collection)} if
you want to override the existing values.
</p>

@param vulnerablePackages
       The packages impacted by this vulnerability.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/PackageVulnerabilityDetails.java