Interface RepositoryDescription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RepositoryDescription.Builder,RepositoryDescription>,SdkBuilder<RepositoryDescription.Builder,RepositoryDescription>,SdkPojo
- Enclosing class:
- RepositoryDescription
public static interface RepositoryDescription.Builder extends SdkPojo, CopyableBuilder<RepositoryDescription.Builder,RepositoryDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RepositoryDescription.BuilderadministratorAccount(String administratorAccount)The 12-digit account number of the Amazon Web Services account that manages the repository.RepositoryDescription.Builderarn(String arn)The Amazon Resource Name (ARN) of the repository.RepositoryDescription.BuildercreatedTime(Instant createdTime)A timestamp that represents the date and time the repository was created.RepositoryDescription.Builderdescription(String description)A text description of the repository.RepositoryDescription.BuilderdomainName(String domainName)The name of the domain that contains the repository.RepositoryDescription.BuilderdomainOwner(String domainOwner)The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository.RepositoryDescription.BuilderexternalConnections(Collection<RepositoryExternalConnectionInfo> externalConnections)An array of external connections associated with the repository.RepositoryDescription.BuilderexternalConnections(Consumer<RepositoryExternalConnectionInfo.Builder>... externalConnections)An array of external connections associated with the repository.RepositoryDescription.BuilderexternalConnections(RepositoryExternalConnectionInfo... externalConnections)An array of external connections associated with the repository.RepositoryDescription.Buildername(String name)The name of the repository.RepositoryDescription.Builderupstreams(Collection<UpstreamRepositoryInfo> upstreams)A list of upstream repositories to associate with the repository.RepositoryDescription.Builderupstreams(Consumer<UpstreamRepositoryInfo.Builder>... upstreams)A list of upstream repositories to associate with the repository.RepositoryDescription.Builderupstreams(UpstreamRepositoryInfo... upstreams)A list of upstream repositories to associate with the repository.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
RepositoryDescription.Builder name(String 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
RepositoryDescription.Builder administratorAccount(String 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
RepositoryDescription.Builder domainName(String 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
RepositoryDescription.Builder domainOwner(String 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
RepositoryDescription.Builder arn(String 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
RepositoryDescription.Builder description(String 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
RepositoryDescription.Builder upstreams(Collection<UpstreamRepositoryInfo> 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
RepositoryDescription.Builder upstreams(UpstreamRepositoryInfo... 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
RepositoryDescription.Builder upstreams(Consumer<UpstreamRepositoryInfo.Builder>... 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 to#upstreams(List.) - 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:
#upstreams(java.util.Collection)
-
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 to#externalConnections(List.) - 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:
#externalConnections(java.util.Collection)
-
createdTime
RepositoryDescription.Builder createdTime(Instant 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.
-
-