Class CfnRegistryPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.eventschemas.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRegistryPolicyProps.getPolicy()registryName(String registryName) Sets the value ofCfnRegistryPolicyProps.getRegistryName()revisionId(String revisionId) Sets the value ofCfnRegistryPolicyProps.getRevisionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnRegistryPolicyProps.getPolicy()- Parameters:
policy- A resource-based policy. This parameter is required.- Returns:
this
-
registryName
Sets the value ofCfnRegistryPolicyProps.getRegistryName()- Parameters:
registryName- The name of the registry. This parameter is required.- Returns:
this
-
revisionId
Sets the value ofCfnRegistryPolicyProps.getRevisionId()- Parameters:
revisionId- The revision ID of the policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRegistryPolicyProps>- Returns:
- a new instance of
CfnRegistryPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-