Class CfnPullThroughCacheRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecr.CfnPullThroughCacheRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPullThroughCacheRuleMixinProps>
- Enclosing interface:
CfnPullThroughCacheRuleMixinProps
@Stability(Stable)
public static final class CfnPullThroughCacheRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPullThroughCacheRuleMixinProps>
A builder for
CfnPullThroughCacheRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialArn(String credentialArn) Sets the value ofCfnPullThroughCacheRuleMixinProps.getCredentialArn()customRoleArn(String customRoleArn) Sets the value ofCfnPullThroughCacheRuleMixinProps.getCustomRoleArn()ecrRepositoryPrefix(String ecrRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleMixinProps.getEcrRepositoryPrefix()upstreamRegistry(String upstreamRegistry) Sets the value ofCfnPullThroughCacheRuleMixinProps.getUpstreamRegistry()upstreamRegistryUrl(String upstreamRegistryUrl) Sets the value ofCfnPullThroughCacheRuleMixinProps.getUpstreamRegistryUrl()upstreamRepositoryPrefix(String upstreamRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleMixinProps.getUpstreamRepositoryPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentialArn
@Stability(Stable) public CfnPullThroughCacheRuleMixinProps.Builder credentialArn(String credentialArn) Sets the value ofCfnPullThroughCacheRuleMixinProps.getCredentialArn()- Parameters:
credentialArn- The ARN of the Secrets Manager secret associated with the pull through cache rule.- Returns:
this
-
customRoleArn
@Stability(Stable) public CfnPullThroughCacheRuleMixinProps.Builder customRoleArn(String customRoleArn) Sets the value ofCfnPullThroughCacheRuleMixinProps.getCustomRoleArn()- Parameters:
customRoleArn- The ARN of the IAM role associated with the pull through cache rule.- Returns:
this
-
ecrRepositoryPrefix
@Stability(Stable) public CfnPullThroughCacheRuleMixinProps.Builder ecrRepositoryPrefix(String ecrRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleMixinProps.getEcrRepositoryPrefix()- Parameters:
ecrRepositoryPrefix- The Amazon ECR repository prefix associated with the pull through cache rule.- Returns:
this
-
upstreamRegistry
@Stability(Stable) public CfnPullThroughCacheRuleMixinProps.Builder upstreamRegistry(String upstreamRegistry) Sets the value ofCfnPullThroughCacheRuleMixinProps.getUpstreamRegistry()- Parameters:
upstreamRegistry- The name of the upstream source registry associated with the pull through cache rule.- Returns:
this
-
upstreamRegistryUrl
@Stability(Stable) public CfnPullThroughCacheRuleMixinProps.Builder upstreamRegistryUrl(String upstreamRegistryUrl) Sets the value ofCfnPullThroughCacheRuleMixinProps.getUpstreamRegistryUrl()- Parameters:
upstreamRegistryUrl- The upstream registry URL associated with the pull through cache rule.- Returns:
this
-
upstreamRepositoryPrefix
@Stability(Stable) public CfnPullThroughCacheRuleMixinProps.Builder upstreamRepositoryPrefix(String upstreamRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleMixinProps.getUpstreamRepositoryPrefix()- Parameters:
upstreamRepositoryPrefix- The upstream repository prefix associated with the pull through cache rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPullThroughCacheRuleMixinProps>- Returns:
- a new instance of
CfnPullThroughCacheRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-