Class CfnReplicationConfiguration.RepositoryFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.RepositoryFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationConfiguration.RepositoryFilterProperty>
- Enclosing interface:
CfnReplicationConfiguration.RepositoryFilterProperty
@Stability(Stable)
public static final class CfnReplicationConfiguration.RepositoryFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationConfiguration.RepositoryFilterProperty>
A builder for
CfnReplicationConfiguration.RepositoryFilterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnReplicationConfiguration.RepositoryFilterProperty.getFilter()
filterType
(String filterType) Sets the value ofCfnReplicationConfiguration.RepositoryFilterProperty.getFilterType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filter
@Stability(Stable) public CfnReplicationConfiguration.RepositoryFilterProperty.Builder filter(String filter) Sets the value ofCfnReplicationConfiguration.RepositoryFilterProperty.getFilter()
- Parameters:
filter
- The repository filter details. This parameter is required. When thePREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for.- Returns:
this
-
filterType
@Stability(Stable) public CfnReplicationConfiguration.RepositoryFilterProperty.Builder filterType(String filterType) Sets the value ofCfnReplicationConfiguration.RepositoryFilterProperty.getFilterType()
- Parameters:
filterType
- The repository filter type. This parameter is required. The only supported value isPREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicationConfiguration.RepositoryFilterProperty>
- Returns:
- a new instance of
CfnReplicationConfiguration.RepositoryFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-