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
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 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.Builder
avoiding the need to create one manually viaUpstreamRepository.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-