Interface CreateRepositoryRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeartifactRequest.Builder,CopyableBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>,SdkBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateRepositoryRequest
public static interface CreateRepositoryRequest.Builder extends CodeartifactRequest.Builder, SdkPojo, CopyableBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateRepositoryRequest.Builderdescription(String description)A description of the created repository.CreateRepositoryRequest.Builderdomain(String domain)The name of the domain that contains the created repository.CreateRepositoryRequest.BuilderdomainOwner(String domainOwner)The 12-digit account number of the Amazon Web Services account that owns the domain.CreateRepositoryRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateRepositoryRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateRepositoryRequest.Builderrepository(String repository)The name of the repository to create.CreateRepositoryRequest.Buildertags(Collection<Tag> tags)One or more tag key-value pairs for the repository.CreateRepositoryRequest.Buildertags(Consumer<Tag.Builder>... tags)One or more tag key-value pairs for the repository.CreateRepositoryRequest.Buildertags(Tag... tags)One or more tag key-value pairs for the repository.CreateRepositoryRequest.Builderupstreams(Collection<UpstreamRepository> upstreams)A list of upstream repositories to associate with the repository.CreateRepositoryRequest.Builderupstreams(Consumer<UpstreamRepository.Builder>... upstreams)A list of upstream repositories to associate with the repository.CreateRepositoryRequest.Builderupstreams(UpstreamRepository... upstreams)A list of upstream repositories to associate with the repository.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactRequest.Builder
build
-
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
-
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.
-
upstreams
CreateRepositoryRequest.Builder upstreams(Consumer<UpstreamRepository.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 theUpstreamRepository.Builderavoiding the need to create one manually viaUpstreamRepository.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 onUpstreamRepository.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#upstreams(java.util.Collection)
-
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-