Interface CreateRepositoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeartifactRequest.Builder,CopyableBuilder<CreateRepositoryRequest.Builder,,CreateRepositoryRequest> SdkBuilder<CreateRepositoryRequest.Builder,,CreateRepositoryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateRepositoryRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the created repository.The name of the domain that contains the created repository.domainOwner(String domainOwner) The 12-digit account number of the Amazon Web Services account that owns the domain.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.repository(String repository) The name of the repository to create.tags(Collection<Tag> tags) One or more tag key-value pairs for the repository.tags(Consumer<Tag.Builder>... tags) One or more tag key-value pairs for the repository.One or more tag key-value pairs for the repository.upstreams(Collection<UpstreamRepository> upstreams) A list of upstream repositories to associate with the repository.upstreams(Consumer<UpstreamRepository.Builder>... upstreams) A list of upstream repositories to associate with the repository.upstreams(UpstreamRepository... upstreams) A list of upstream repositories to associate with the repository.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactRequest.Builder
buildMethods 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
-
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
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
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
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
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 theUpstreamRepository.Builderavoiding the need to create one manually viaUpstreamRepository.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toupstreams(List<UpstreamRepository>).- 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:
-
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
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
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 totags(List<Tag>).- 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:
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-