Class CfnBucket.ReplicationRuleFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.ReplicationRuleFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.ReplicationRuleFilterProperty>
- Enclosing interface:
CfnBucket.ReplicationRuleFilterProperty
@Stability(Stable)
public static final class CfnBucket.ReplicationRuleFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.ReplicationRuleFilterProperty>
A builder for
CfnBucket.ReplicationRuleFilterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionand
(IResolvable and) Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getAnd()
Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getAnd()
build()
Builds the configured instance.Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getPrefix()
tagFilter
(IResolvable tagFilter) Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getTagFilter()
tagFilter
(CfnBucket.TagFilterProperty tagFilter) Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getTagFilter()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
and
Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getAnd()
- Parameters:
and
- A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:- If you specify both a
Prefix
and aTagFilter
, wrap these filters in anAnd
tag. - If you specify a filter based on multiple tags, wrap the
TagFilter
elements in anAnd
tag.
- If you specify both a
- Returns:
this
-
and
@Stability(Stable) public CfnBucket.ReplicationRuleFilterProperty.Builder and(CfnBucket.ReplicationRuleAndOperatorProperty and) Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getAnd()
- Parameters:
and
- A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:- If you specify both a
Prefix
and aTagFilter
, wrap these filters in anAnd
tag. - If you specify a filter based on multiple tags, wrap the
TagFilter
elements in anAnd
tag.
- If you specify both a
- Returns:
this
-
prefix
Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getPrefix()
- Parameters:
prefix
- An object key name prefix that identifies the subset of objects to which the rule applies.Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints .
- Returns:
this
-
tagFilter
@Stability(Stable) public CfnBucket.ReplicationRuleFilterProperty.Builder tagFilter(IResolvable tagFilter) Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getTagFilter()
- Parameters:
tagFilter
- A container for specifying a tag key and value. The rule applies only to objects that have the tag in their tag set.- Returns:
this
-
tagFilter
@Stability(Stable) public CfnBucket.ReplicationRuleFilterProperty.Builder tagFilter(CfnBucket.TagFilterProperty tagFilter) Sets the value ofCfnBucket.ReplicationRuleFilterProperty.getTagFilter()
- Parameters:
tagFilter
- A container for specifying a tag key and value. The rule applies only to objects that have the tag in their tag set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.ReplicationRuleFilterProperty>
- Returns:
- a new instance of
CfnBucket.ReplicationRuleFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-