Interface CreateRepositoryRequest.Builder

    • Method Detail

      • domain

        CreateRepositoryRequest.Builder domain​(String domain)

        The name of the domain that contains the created repository.

        Parameters:
        domain - The name of the domain that contains the created repository.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • domainOwner

        CreateRepositoryRequest.Builder domainOwner​(String domainOwner)

        The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

        Parameters:
        domainOwner - The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repository

        CreateRepositoryRequest.Builder repository​(String repository)

        The name of the repository to create.

        Parameters:
        repository - The name of the repository to create.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateRepositoryRequest.Builder description​(String description)

        A description of the created repository.

        Parameters:
        description - A description of the created repository.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • upstreams

        CreateRepositoryRequest.Builder upstreams​(Collection<UpstreamRepository> 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 Working with upstream repositories.

        Parameters:
        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 Working with upstream repositories.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • upstreams

        CreateRepositoryRequest.Builder upstreams​(UpstreamRepository... 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 Working with upstream repositories.

        Parameters:
        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 Working with upstream repositories.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRepositoryRequest.Builder tags​(Collection<Tag> tags)

        One or more tag key-value pairs for the repository.

        Parameters:
        tags - One or more tag key-value pairs for the repository.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRepositoryRequest.Builder tags​(Tag... tags)

        One or more tag key-value pairs for the repository.

        Parameters:
        tags - One or more tag key-value pairs for the repository.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateRepositoryRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        One or more tag key-value pairs for the repository.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)