Class CfnRegistryPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnRegistryPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegistryPolicyProps>
- Enclosing interface:
CfnRegistryPolicyProps
@Stability(Stable)
public static final class CfnRegistryPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegistryPolicyProps>
A builder for
CfnRegistryPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyText
(Object policyText) Sets the value ofCfnRegistryPolicyProps.getPolicyText()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyText
Sets the value ofCfnRegistryPolicyProps.getPolicyText()
- Parameters:
policyText
- The JSON policy text for your registry. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRegistryPolicyProps>
- Returns:
- a new instance of
CfnRegistryPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-