Class CfnRepositoryCreationTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecr.CfnRepositoryCreationTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryCreationTemplateMixinProps>
- Enclosing interface:
CfnRepositoryCreationTemplateMixinProps
@Stability(Stable)
public static final class CfnRepositoryCreationTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepositoryCreationTemplateMixinProps>
A builder for
CfnRepositoryCreationTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappliedFor(List<String> appliedFor) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getAppliedFor()build()Builds the configured instance.customRoleArn(String customRoleArn) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getCustomRoleArn()description(String description) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getDescription()encryptionConfiguration(CfnRepositoryCreationTemplatePropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getEncryptionConfiguration()encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getEncryptionConfiguration()imageTagMutability(String imageTagMutability) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getImageTagMutability()imageTagMutabilityExclusionFilters(List<? extends Object> imageTagMutabilityExclusionFilters) imageTagMutabilityExclusionFilters(IResolvable imageTagMutabilityExclusionFilters) lifecyclePolicy(String lifecyclePolicy) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getLifecyclePolicy()Sets the value ofCfnRepositoryCreationTemplateMixinProps.getPrefix()repositoryPolicy(String repositoryPolicy) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getRepositoryPolicy()resourceTags(List<? extends Object> resourceTags) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getResourceTags()resourceTags(IResolvable resourceTags) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getResourceTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appliedFor
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder appliedFor(List<String> appliedFor) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getAppliedFor()- Parameters:
appliedFor- A list of enumerable Strings representing the repository creation scenarios that this template will apply towards. The supported scenarios are PULL_THROUGH_CACHE, REPLICATION, and CREATE_ON_PUSH- Returns:
this
-
customRoleArn
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder customRoleArn(String customRoleArn) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getCustomRoleArn()- Parameters:
customRoleArn- The ARN of the role to be assumed by Amazon ECR. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.- Returns:
this
-
description
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder description(String description) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getDescription()- Parameters:
description- The description associated with the repository creation template.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- The encryption configuration associated with the repository creation template.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder encryptionConfiguration(CfnRepositoryCreationTemplatePropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- The encryption configuration associated with the repository creation template.- Returns:
this
-
imageTagMutability
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder imageTagMutability(String imageTagMutability) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getImageTagMutability()- 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:
this
-
imageTagMutabilityExclusionFilters
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder imageTagMutabilityExclusionFilters(IResolvable imageTagMutabilityExclusionFilters) - Parameters:
imageTagMutabilityExclusionFilters- A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.- Returns:
this
-
imageTagMutabilityExclusionFilters
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder imageTagMutabilityExclusionFilters(List<? extends Object> imageTagMutabilityExclusionFilters) - Parameters:
imageTagMutabilityExclusionFilters- A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.- Returns:
this
-
lifecyclePolicy
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder lifecyclePolicy(String lifecyclePolicy) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getLifecyclePolicy()- Parameters:
lifecyclePolicy- The lifecycle policy to use for repositories created using the template.- Returns:
this
-
prefix
Sets the value ofCfnRepositoryCreationTemplateMixinProps.getPrefix()- Parameters:
prefix- The repository namespace prefix associated with the repository creation template.- Returns:
this
-
repositoryPolicy
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder repositoryPolicy(String repositoryPolicy) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getRepositoryPolicy()- Parameters:
repositoryPolicy- The repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder resourceTags(IResolvable resourceTags) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getResourceTags()- Parameters:
resourceTags- The metadata to apply to the repository to help you categorize and organize. 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:
this
-
resourceTags
@Stability(Stable) public CfnRepositoryCreationTemplateMixinProps.Builder resourceTags(List<? extends Object> resourceTags) Sets the value ofCfnRepositoryCreationTemplateMixinProps.getResourceTags()- Parameters:
resourceTags- The metadata to apply to the repository to help you categorize and organize. 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryCreationTemplateMixinProps>- Returns:
- a new instance of
CfnRepositoryCreationTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-