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 Details

    • Builder

      public Builder()
  • Method Details

    • prefix

      @Stability(Stable) public Filter.Builder prefix(String prefix)
      Sets the value of Filter.getPrefix()
      Parameters:
      prefix - An object key name prefix that identifies the object or objects to which the rule applies.
      Returns:
      this
    • tags

      @Stability(Stable) public Filter.Builder tags(List<? extends Tag> tags)
      Sets the value of Filter.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

      @Stability(Stable) public Filter build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Filter>
      Returns:
      a new instance of Filter
      Throws:
      NullPointerException - if any required attribute was not provided