Class CfnReplicationConfiguration.ReplicationRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationConfiguration.ReplicationRuleProperty>
- Enclosing interface:
CfnReplicationConfiguration.ReplicationRuleProperty
@Stability(Stable)
public static final class CfnReplicationConfiguration.ReplicationRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationConfiguration.ReplicationRuleProperty>
A builder for
CfnReplicationConfiguration.ReplicationRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinations
(List<? extends Object> destinations) Sets the value ofCfnReplicationConfiguration.ReplicationRuleProperty.getDestinations()
destinations
(IResolvable destinations) Sets the value ofCfnReplicationConfiguration.ReplicationRuleProperty.getDestinations()
repositoryFilters
(List<? extends Object> repositoryFilters) repositoryFilters
(IResolvable repositoryFilters)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinations
@Stability(Stable) public CfnReplicationConfiguration.ReplicationRuleProperty.Builder destinations(IResolvable destinations) Sets the value ofCfnReplicationConfiguration.ReplicationRuleProperty.getDestinations()
- Parameters:
destinations
- An array of objects representing the destination for a replication rule. This parameter is required.- Returns:
this
-
destinations
@Stability(Stable) public CfnReplicationConfiguration.ReplicationRuleProperty.Builder destinations(List<? extends Object> destinations) Sets the value ofCfnReplicationConfiguration.ReplicationRuleProperty.getDestinations()
- Parameters:
destinations
- An array of objects representing the destination for a replication rule. This parameter is required.- Returns:
this
-
repositoryFilters
@Stability(Stable) public CfnReplicationConfiguration.ReplicationRuleProperty.Builder repositoryFilters(IResolvable repositoryFilters) - Parameters:
repositoryFilters
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.- Returns:
this
-
repositoryFilters
@Stability(Stable) public CfnReplicationConfiguration.ReplicationRuleProperty.Builder repositoryFilters(List<? extends Object> repositoryFilters) - Parameters:
repositoryFilters
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicationConfiguration.ReplicationRuleProperty>
- Returns:
- a new instance of
CfnReplicationConfiguration.ReplicationRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-