Class CfnRepository.LifecyclePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnRepository.LifecyclePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepository.LifecyclePolicyProperty>
- Enclosing interface:
CfnRepository.LifecyclePolicyProperty
@Stability(Stable)
public static final class CfnRepository.LifecyclePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepository.LifecyclePolicyProperty>
A builder for
CfnRepository.LifecyclePolicyProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.lifecyclePolicyText
(String lifecyclePolicyText) Sets the value ofCfnRepository.LifecyclePolicyProperty.getLifecyclePolicyText()
registryId
(String registryId) Sets the value ofCfnRepository.LifecyclePolicyProperty.getRegistryId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lifecyclePolicyText
@Stability(Stable) public CfnRepository.LifecyclePolicyProperty.Builder lifecyclePolicyText(String lifecyclePolicyText) Sets the value ofCfnRepository.LifecyclePolicyProperty.getLifecyclePolicyText()
- Parameters:
lifecyclePolicyText
- The JSON repository policy text to apply to the repository.- Returns:
this
-
registryId
@Stability(Stable) public CfnRepository.LifecyclePolicyProperty.Builder registryId(String registryId) Sets the value ofCfnRepository.LifecyclePolicyProperty.getRegistryId()
- Parameters:
registryId
- The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRepository.LifecyclePolicyProperty>
- Returns:
- a new instance of
CfnRepository.LifecyclePolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-