public void setUpstreams(java.util.Collection<UpstreamRepository> upstreams) {
        if (upstreams == null) {
            this.upstreams = null;
            return;
        }

        this.upstreams = new java.util.ArrayList<UpstreamRepository>(upstreams);
    }
<p>
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the
list determines their priority order when CodeArtifact looks for a requested package version. For more
information, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html">Working with
upstream repositories</a>.
</p>

@param upstreams
       A list of upstream repositories to associate with the repository. The order of the upstream repositories
       in the list determines their priority order when CodeArtifact looks for a requested package version. For
       more information, see <a
       href="https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html">Working with upstream
       repositories</a>.
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/CreateRepositoryRequest.java