public ListPackagesResult withPackageSummaries(PackageSummary... packageSummaries) {
        if (this.packageSummaries == null) {
            setPackageSummaries(new java.util.ArrayList<PackageSummary>(packageSummaries.length));
        }
        for (PackageSummary ele : packageSummaries) {
            this.packageSummaries.add(ele);
        }
        return this;
    }
<p>
The software package summary.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPackageSummaries(java.util.Collection)} or {@link #withPackageSummaries(java.util.Collection)} if you
want to override the existing values.
</p>

@param packageSummaries
       The software package summary.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ListPackagesResult.java