Class CfnReplicationConfiguration.ReplicationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationConfiguration.ReplicationConfigurationProperty>
- Enclosing interface:
CfnReplicationConfiguration.ReplicationConfigurationProperty
@Stability(Stable)
public static final class CfnReplicationConfiguration.ReplicationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationConfiguration.ReplicationConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnReplicationConfiguration.ReplicationConfigurationProperty.getRules()
rules
(IResolvable rules) Sets the value ofCfnReplicationConfiguration.ReplicationConfigurationProperty.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rules
@Stability(Stable) public CfnReplicationConfiguration.ReplicationConfigurationProperty.Builder rules(IResolvable rules) Sets the value ofCfnReplicationConfiguration.ReplicationConfigurationProperty.getRules()
- Parameters:
rules
- An array of objects representing the replication destinations and repository filters for a replication configuration. This parameter is required.- Returns:
this
-
rules
@Stability(Stable) public CfnReplicationConfiguration.ReplicationConfigurationProperty.Builder rules(List<? extends Object> rules) Sets the value ofCfnReplicationConfiguration.ReplicationConfigurationProperty.getRules()
- Parameters:
rules
- An array of objects representing the replication destinations and repository filters for a replication configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicationConfiguration.ReplicationConfigurationProperty>
- Returns:
- a new instance of
CfnReplicationConfiguration.ReplicationConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-