public ListAllowedRepositoriesForGroupResult withAllowedRepositories(String... allowedRepositories) {
        if (this.allowedRepositories == null) {
            setAllowedRepositories(new java.util.ArrayList<String>(allowedRepositories.length));
        }
        for (String ele : allowedRepositories) {
            this.allowedRepositories.add(ele);
        }
        return this;
    }
<p>
The list of allowed repositories for the package group and origin configuration restriction type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAllowedRepositories(java.util.Collection)} or {@link #withAllowedRepositories(java.util.Collection)}
if you want to override the existing values.
</p>

@param allowedRepositories
       The list of allowed repositories for the package group and origin configuration restriction type.
@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/ListAllowedRepositoriesForGroupResult.java