Interface CreateRepositoryRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>,EcrRequest.Builder,SdkBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateRepositoryRequest
public static interface CreateRepositoryRequest.Builder extends EcrRequest.Builder, SdkPojo, CopyableBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateRepositoryRequest.BuilderencryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)The encryption configuration for the repository.CreateRepositoryRequest.BuilderencryptionConfiguration(EncryptionConfiguration encryptionConfiguration)The encryption configuration for the repository.default CreateRepositoryRequest.BuilderimageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration)The image scanning configuration for the repository.CreateRepositoryRequest.BuilderimageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration)The image scanning configuration for the repository.CreateRepositoryRequest.BuilderimageTagMutability(String imageTagMutability)The tag mutability setting for the repository.CreateRepositoryRequest.BuilderimageTagMutability(ImageTagMutability imageTagMutability)The tag mutability setting for the repository.CreateRepositoryRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateRepositoryRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateRepositoryRequest.BuilderregistryId(String registryId)The Amazon Web Services account ID associated with the registry to create the repository.CreateRepositoryRequest.BuilderrepositoryName(String repositoryName)The name to use for the repository.CreateRepositoryRequest.Buildertags(Collection<Tag> tags)The metadata that you apply to the repository to help you categorize and organize them.CreateRepositoryRequest.Buildertags(Consumer<Tag.Builder>... tags)The metadata that you apply to the repository to help you categorize and organize them.CreateRepositoryRequest.Buildertags(Tag... tags)The metadata that you apply to the repository to help you categorize and organize them.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ecr.model.EcrRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
registryId
CreateRepositoryRequest.Builder registryId(String registryId)
The Amazon Web Services account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.
- Parameters:
registryId- The Amazon Web Services account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryName
CreateRepositoryRequest.Builder repositoryName(String repositoryName)
The name to use for the repository. The repository name may be specified on its own (such as
nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such asproject-a/nginx-web-app).The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.
- Parameters:
repositoryName- The name to use for the repository. The repository name may be specified on its own (such asnginx-web-app) or it can be prepended with a namespace to group the repository into a category (such asproject-a/nginx-web-app).The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateRepositoryRequest.Builder tags(Collection<Tag> tags)
The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. 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 the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. 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
CreateRepositoryRequest.Builder tags(Tag... tags)
The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. 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 the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. 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
CreateRepositoryRequest.Builder tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. 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 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)
-
imageTagMutability
CreateRepositoryRequest.Builder imageTagMutability(String imageTagMutability)
The tag mutability setting for the repository. If this parameter is omitted, the default setting of
MUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis specified, all image tags within the repository will be immutable which will prevent them from being overwritten.- Parameters:
imageTagMutability- The tag mutability setting for the repository. If this parameter is omitted, the default setting ofMUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis specified, all image tags within the repository will be immutable which will prevent them from being overwritten.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageTagMutability,ImageTagMutability
-
imageTagMutability
CreateRepositoryRequest.Builder imageTagMutability(ImageTagMutability imageTagMutability)
The tag mutability setting for the repository. If this parameter is omitted, the default setting of
MUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis specified, all image tags within the repository will be immutable which will prevent them from being overwritten.- Parameters:
imageTagMutability- The tag mutability setting for the repository. If this parameter is omitted, the default setting ofMUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis specified, all image tags within the repository will be immutable which will prevent them from being overwritten.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageTagMutability,ImageTagMutability
-
imageScanningConfiguration
CreateRepositoryRequest.Builder imageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration)
The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
- Parameters:
imageScanningConfiguration- The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanningConfiguration
default CreateRepositoryRequest.Builder imageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration)
The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
This is a convenience method that creates an instance of theImageScanningConfiguration.Builderavoiding the need to create one manually viaImageScanningConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageScanningConfiguration(ImageScanningConfiguration).- Parameters:
imageScanningConfiguration- a consumer that will call methods onImageScanningConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageScanningConfiguration(ImageScanningConfiguration)
-
encryptionConfiguration
CreateRepositoryRequest.Builder encryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
- Parameters:
encryptionConfiguration- The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
default CreateRepositoryRequest.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration)
The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
This is a convenience method that creates an instance of theEncryptionConfiguration.Builderavoiding the need to create one manually viaEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionConfiguration(EncryptionConfiguration).- Parameters:
encryptionConfiguration- a consumer that will call methods onEncryptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
encryptionConfiguration(EncryptionConfiguration)
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-