Interface CreateRepositoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateRepositoryRequest.Builder,,CreateRepositoryRequest> EcrPublicRequest.Builder,SdkBuilder<CreateRepositoryRequest.Builder,,CreateRepositoryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateRepositoryRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateRepositoryRequest.BuildercatalogData(Consumer<RepositoryCatalogDataInput.Builder> catalogData) The details about the repository that are publicly visible in the Amazon ECR Public Gallery.catalogData(RepositoryCatalogDataInput catalogData) The details about the repository that are publicly visible in the Amazon ECR Public Gallery.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.repositoryName(String repositoryName) The name to use for the repository.tags(Collection<Tag> tags) The metadata that you apply to each repository to help categorize and organize your repositories.tags(Consumer<Tag.Builder>... tags) The metadata that you apply to each repository to help categorize and organize your repositories.The metadata that you apply to each repository to help categorize and organize your repositories.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecrpublic.model.EcrPublicRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
repositoryName
The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name can be specified on its own (for example
nginx-web-app) or prepended with a namespace to group the repository into a category (for exampleproject-a/nginx-web-app).- Parameters:
repositoryName- The name to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name can be specified on its own (for examplenginx-web-app) or prepended with a namespace to group the repository into a category (for exampleproject-a/nginx-web-app).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogData
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
- Parameters:
catalogData- The details about the repository that are publicly visible in the Amazon ECR Public Gallery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogData
default CreateRepositoryRequest.Builder catalogData(Consumer<RepositoryCatalogDataInput.Builder> catalogData) The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
This is a convenience method that creates an instance of theRepositoryCatalogDataInput.Builderavoiding the need to create one manually viaRepositoryCatalogDataInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocatalogData(RepositoryCatalogDataInput).- Parameters:
catalogData- a consumer that will call methods onRepositoryCatalogDataInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- Parameters:
tags- The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- Parameters:
tags- The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
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.
-