public ListPackageVersionsResult withVersions(java.util.Collection<PackageVersionSummary> versions) {
        setVersions(versions);
        return this;
    }
<p>
The returned list of <a
href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html"
>PackageVersionSummary</a> objects.
</p>

@param versions
       The returned list of <a
       href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html"
       >PackageVersionSummary</a> objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/ListPackageVersionsResult.java