Class CfnBucket.FilterRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.FilterRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.FilterRuleProperty>
- Enclosing interface:
CfnBucket.FilterRuleProperty
@Stability(Stable)
public static final class CfnBucket.FilterRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.FilterRuleProperty>
A builder for
CfnBucket.FilterRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.FilterRuleProperty.getName()
Sets the value ofCfnBucket.FilterRuleProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnBucket.FilterRuleProperty.getName()
- Parameters:
name
- The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. This parameter is required. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see Configuring Event Notifications in the Amazon S3 User Guide .- Returns:
this
-
value
Sets the value ofCfnBucket.FilterRuleProperty.getValue()
- Parameters:
value
- The value that the filter searches for in object key names. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.FilterRuleProperty>
- Returns:
- a new instance of
CfnBucket.FilterRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-