public BatchGetRepositoriesResult withRepositories(RepositoryMetadata... repositories) {
        if (this.repositories == null) {
            setRepositories(new java.util.ArrayList<RepositoryMetadata>(repositories.length));
        }
        for (RepositoryMetadata ele : repositories) {
            this.repositories.add(ele);
        }
        return this;
    }
public BatchGetRepositoriesResult withRepositories ( RepositoryMetadata ... repositories ) { if ( this . repositories == null ) { setRepositories ( new java . util . ArrayList < RepositoryMetadata > ( repositories . length ) ) ; } for ( RepositoryMetadata ele : repositories ) { this . repositories . add ( ele ) ; } return this ; }
<p>
A list of repositories returned by the batch get repositories operation.
</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
A list of repositories returned by the batch get repositories operation.
@return Returns a reference to this object so that method calls can be chained together.