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