public ListPackageVersionsResult withPackageVersionSummaries(PackageVersionSummary... packageVersionSummaries) {
        if (this.packageVersionSummaries == null) {
            setPackageVersionSummaries(new java.util.ArrayList<PackageVersionSummary>(packageVersionSummaries.length));
        }
        for (PackageVersionSummary ele : packageVersionSummaries) {
            this.packageVersionSummaries.add(ele);
        }
        return this;
    }
<p>
Lists the package versions associated to the package.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPackageVersionSummaries(java.util.Collection)} or
{@link #withPackageVersionSummaries(java.util.Collection)} if you want to override the existing values.
</p>

@param packageVersionSummaries
       Lists the package versions associated to the package.
@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/ListPackageVersionsResult.java