public DescribeRepositoryCreationTemplatesRequest withPrefixes(String... prefixes) {
        if (this.prefixes == null) {
            setPrefixes(new java.util.ArrayList<String>(prefixes.length));
        }
        for (String ele : prefixes) {
            this.prefixes.add(ele);
        }
        return this;
    }
<p>
The repository namespace prefixes associated with the repository creation templates to describe. If this value is
not specified, all repository creation templates are returned.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPrefixes(java.util.Collection)} or {@link #withPrefixes(java.util.Collection)} if you want to override
the existing values.
</p>

@param prefixes
       The repository namespace prefixes associated with the repository creation templates to describe. If this
       value is not specified, all repository creation templates are returned.
@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/DescribeRepositoryCreationTemplatesRequest.java