public ReplicationRule withRepositoryFilters(RepositoryFilter... repositoryFilters) {
        if (this.repositoryFilters == null) {
            setRepositoryFilters(new java.util.ArrayList<RepositoryFilter>(repositoryFilters.length));
        }
        for (RepositoryFilter ele : repositoryFilters) {
            this.repositoryFilters.add(ele);
        }
        return this;
    }
<p>
An array of objects representing the filters for a replication rule. Specifying a repository filter for a
replication rule provides a method for controlling which repositories in a private registry are replicated.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRepositoryFilters(java.util.Collection)} or {@link #withRepositoryFilters(java.util.Collection)} if
you want to override the existing values.
</p>

@param repositoryFilters
       An array of objects representing the filters for a replication rule. Specifying a repository filter for a
       replication rule provides a method for controlling which repositories in a private registry are
       replicated.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/ReplicationRule.java