Interface LifecycleRuleAndOperator.Builder

    • Method Detail

      • prefix

        LifecycleRuleAndOperator.Builder prefix​(String prefix)

        Prefix identifying one or more objects to which the rule applies.

        Parameters:
        prefix - Prefix identifying one or more objects to which the rule applies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        LifecycleRuleAndOperator.Builder tags​(Collection<S3Tag> tags)

        All of these tags must exist in the object's tag set in order for the rule to apply.

        Parameters:
        tags - All of these tags must exist in the object's tag set in order for the rule to apply.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        LifecycleRuleAndOperator.Builder tags​(S3Tag... tags)

        All of these tags must exist in the object's tag set in order for the rule to apply.

        Parameters:
        tags - All of these tags must exist in the object's tag set in order for the rule to apply.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        LifecycleRuleAndOperator.Builder tags​(Consumer<S3Tag.Builder>... tags)

        All of these tags must exist in the object's tag set in order for the rule to apply.

        This is a convenience method that creates an instance of the S3Tag.Builder avoiding the need to create one manually via S3Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on S3Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)
      • objectSizeGreaterThan

        LifecycleRuleAndOperator.Builder objectSizeGreaterThan​(Long objectSizeGreaterThan)

        The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule applies to objects with a size that is greater than 7.

        Parameters:
        objectSizeGreaterThan - The non-inclusive minimum object size for the lifecycle rule. Setting this property to 7 means the rule applies to objects with a size that is greater than 7.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • objectSizeLessThan

        LifecycleRuleAndOperator.Builder objectSizeLessThan​(Long objectSizeLessThan)

        The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule applies to objects with a size that is less than 77.

        Parameters:
        objectSizeLessThan - The non-inclusive maximum object size for the lifecycle rule. Setting this property to 77 means the rule applies to objects with a size that is less than 77.
        Returns:
        Returns a reference to this object so that method calls can be chained together.