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

@param repositories
       The returned list of <a
       href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html"
       >RepositorySummary</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/ListRepositoriesResult.java