public ListPackageVersionDependenciesResult withDependencies(PackageDependency... dependencies) {
        if (this.dependencies == null) {
            setDependencies(new java.util.ArrayList<PackageDependency>(dependencies.length));
        }
        for (PackageDependency ele : dependencies) {
            this.dependencies.add(ele);
        }
        return this;
    }
<p>
The returned list of <a
href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html"
>PackageDependency</a> objects.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDependencies(java.util.Collection)} or {@link #withDependencies(java.util.Collection)} if you want to
override the existing values.
</p>

@param dependencies
       The returned list of <a
       href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html"
       >PackageDependency</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/ListPackageVersionDependenciesResult.java