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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialArn(String credentialArn) Sets the value ofCfnPullThroughCacheRuleProps.getCredentialArn()customRoleArn(String customRoleArn) Sets the value ofCfnPullThroughCacheRuleProps.getCustomRoleArn()ecrRepositoryPrefix(String ecrRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleProps.getEcrRepositoryPrefix()upstreamRegistry(String upstreamRegistry) Sets the value ofCfnPullThroughCacheRuleProps.getUpstreamRegistry()upstreamRegistryUrl(String upstreamRegistryUrl) Sets the value ofCfnPullThroughCacheRuleProps.getUpstreamRegistryUrl()upstreamRepositoryPrefix(String upstreamRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleProps.getUpstreamRepositoryPrefix()
-
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
-
customRoleArn
Sets the value ofCfnPullThroughCacheRuleProps.getCustomRoleArn()- Parameters:
customRoleArn- The ARN of the IAM role 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
-
upstreamRepositoryPrefix
@Stability(Stable) public CfnPullThroughCacheRuleProps.Builder upstreamRepositoryPrefix(String upstreamRepositoryPrefix) Sets the value ofCfnPullThroughCacheRuleProps.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<CfnPullThroughCacheRuleProps>- Returns:
- a new instance of
CfnPullThroughCacheRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-