Class Filter.Builder
java.lang.Object
software.amazon.awscdk.services.s3.Filter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Filter>
- Enclosing interface:
Filter
@Stability(Stable)
public static final class Filter.Builder
extends Object
implements software.amazon.jsii.Builder<Filter>
A builder for
Filter-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofFilter.getPrefix()Sets the value ofFilter.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prefix
Sets the value ofFilter.getPrefix()- Parameters:
prefix- An object key name prefix that identifies the object or objects to which the rule applies.- Returns:
this
-
tags
Sets the value ofFilter.getTags()- Parameters:
tags- The tag array used for tag filters. The rule applies only to objects that have the tag in this set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Filter>- Returns:
- a new instance of
Filter - Throws:
NullPointerException- if any required attribute was not provided
-