Interface AwsEcrRepositoryDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEcrRepositoryDetails.Builder,
,AwsEcrRepositoryDetails> SdkBuilder<AwsEcrRepositoryDetails.Builder,
,AwsEcrRepositoryDetails> SdkPojo
- Enclosing class:
AwsEcrRepositoryDetails
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the repository.default AwsEcrRepositoryDetails.Builder
imageScanningConfiguration
(Consumer<AwsEcrRepositoryImageScanningConfigurationDetails.Builder> imageScanningConfiguration) The image scanning configuration for a repository.imageScanningConfiguration
(AwsEcrRepositoryImageScanningConfigurationDetails imageScanningConfiguration) The image scanning configuration for a repository.imageTagMutability
(String imageTagMutability) The tag mutability setting for the repository.default AwsEcrRepositoryDetails.Builder
lifecyclePolicy
(Consumer<AwsEcrRepositoryLifecyclePolicyDetails.Builder> lifecyclePolicy) Information about the lifecycle policy for the repository.lifecyclePolicy
(AwsEcrRepositoryLifecyclePolicyDetails lifecyclePolicy) Information about the lifecycle policy for the repository.repositoryName
(String repositoryName) The name of the repository.repositoryPolicyText
(String repositoryPolicyText) The text of the repository policy.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
-
arn
The ARN of the repository.
- Parameters:
arn
- The ARN of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanningConfiguration
AwsEcrRepositoryDetails.Builder imageScanningConfiguration(AwsEcrRepositoryImageScanningConfigurationDetails imageScanningConfiguration) The image scanning configuration for a repository.
- Parameters:
imageScanningConfiguration
- The image scanning configuration for a repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanningConfiguration
default AwsEcrRepositoryDetails.Builder imageScanningConfiguration(Consumer<AwsEcrRepositoryImageScanningConfigurationDetails.Builder> imageScanningConfiguration) The image scanning configuration for a repository.
This is a convenience method that creates an instance of theAwsEcrRepositoryImageScanningConfigurationDetails.Builder
avoiding the need to create one manually viaAwsEcrRepositoryImageScanningConfigurationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageScanningConfiguration(AwsEcrRepositoryImageScanningConfigurationDetails)
.- Parameters:
imageScanningConfiguration
- a consumer that will call methods onAwsEcrRepositoryImageScanningConfigurationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageTagMutability
The tag mutability setting for the repository. Valid values are
IMMUTABLE
orMUTABLE
.- Parameters:
imageTagMutability
- The tag mutability setting for the repository. Valid values areIMMUTABLE
orMUTABLE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecyclePolicy
AwsEcrRepositoryDetails.Builder lifecyclePolicy(AwsEcrRepositoryLifecyclePolicyDetails lifecyclePolicy) Information about the lifecycle policy for the repository.
- Parameters:
lifecyclePolicy
- Information about the lifecycle policy for the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecyclePolicy
default AwsEcrRepositoryDetails.Builder lifecyclePolicy(Consumer<AwsEcrRepositoryLifecyclePolicyDetails.Builder> lifecyclePolicy) Information about the lifecycle policy for the repository.
This is a convenience method that creates an instance of theAwsEcrRepositoryLifecyclePolicyDetails.Builder
avoiding the need to create one manually viaAwsEcrRepositoryLifecyclePolicyDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolifecyclePolicy(AwsEcrRepositoryLifecyclePolicyDetails)
.- Parameters:
lifecyclePolicy
- a consumer that will call methods onAwsEcrRepositoryLifecyclePolicyDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
repositoryName
The name of the repository.
- Parameters:
repositoryName
- The name of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryPolicyText
The text of the repository policy.
- Parameters:
repositoryPolicyText
- The text of the repository policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-