Interface RepositoryDescription.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RepositoryDescription.Builder,,RepositoryDescription> SdkBuilder<RepositoryDescription.Builder,,RepositoryDescription> SdkPojo
- Enclosing class:
RepositoryDescription
-
Method Summary
Modifier and TypeMethodDescriptionadministratorAccount(String administratorAccount) The 12-digit account number of the Amazon Web Services account that manages the repository.The Amazon Resource Name (ARN) of the repository.createdTime(Instant createdTime) A timestamp that represents the date and time the repository was created.description(String description) A text description of the repository.domainName(String domainName) The name of the domain that contains the repository.domainOwner(String domainOwner) The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository.externalConnections(Collection<RepositoryExternalConnectionInfo> externalConnections) An array of external connections associated with the repository.externalConnections(Consumer<RepositoryExternalConnectionInfo.Builder>... externalConnections) An array of external connections associated with the repository.externalConnections(RepositoryExternalConnectionInfo... externalConnections) An array of external connections associated with the repository.The name of the repository.upstreams(Collection<UpstreamRepositoryInfo> upstreams) A list of upstream repositories to associate with the repository.upstreams(Consumer<UpstreamRepositoryInfo.Builder>... upstreams) A list of upstream repositories to associate with the repository.upstreams(UpstreamRepositoryInfo... upstreams) A list of upstream repositories to associate with the repository.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the repository.
- Parameters:
name- The name of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
administratorAccount
The 12-digit account number of the Amazon Web Services account that manages the repository.
- Parameters:
administratorAccount- The 12-digit account number of the Amazon Web Services account that manages the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainName
The name of the domain that contains the repository.
- Parameters:
domainName- The name of the domain that contains the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainOwner
The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.
- Parameters:
domainOwner- The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the repository.
- Parameters:
arn- The Amazon Resource Name (ARN) of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A text description of the repository.
- Parameters:
description- A text description of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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.
This is a convenience method that creates an instance of theUpstreamRepositoryInfo.Builderavoiding the need to create one manually viaUpstreamRepositoryInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toupstreams(List<UpstreamRepositoryInfo>).- Parameters:
upstreams- a consumer that will call methods onUpstreamRepositoryInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
externalConnections
RepositoryDescription.Builder externalConnections(Collection<RepositoryExternalConnectionInfo> externalConnections) An array of external connections associated with the repository.
- Parameters:
externalConnections- An array of external connections associated with the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalConnections
RepositoryDescription.Builder externalConnections(RepositoryExternalConnectionInfo... externalConnections) An array of external connections associated with the repository.
- Parameters:
externalConnections- An array of external connections associated with the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalConnections
RepositoryDescription.Builder externalConnections(Consumer<RepositoryExternalConnectionInfo.Builder>... externalConnections) An array of external connections associated with the repository.
This is a convenience method that creates an instance of theRepositoryExternalConnectionInfo.Builderavoiding the need to create one manually viaRepositoryExternalConnectionInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexternalConnections(List<RepositoryExternalConnectionInfo>).- Parameters:
externalConnections- a consumer that will call methods onRepositoryExternalConnectionInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdTime
A timestamp that represents the date and time the repository was created.
- Parameters:
createdTime- A timestamp that represents the date and time the repository was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-