public PackageAggregation withPackageNames(StringFilter... packageNames) {
        if (this.packageNames == null) {
            setPackageNames(new java.util.ArrayList<StringFilter>(packageNames.length));
        }
        for (StringFilter ele : packageNames) {
            this.packageNames.add(ele);
        }
        return this;
    }
<p>
The names of packages to aggregate findings on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPackageNames(java.util.Collection)} or {@link #withPackageNames(java.util.Collection)} if you want to
override the existing values.
</p>

@param packageNames
       The names of packages to aggregate findings on.
@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/PackageAggregation.java