Interface LifecycleRuleFilter.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>, SdkBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>, SdkPojo
Enclosing class:
LifecycleRuleFilter

public static interface LifecycleRuleFilter.Builder extends SdkPojo, CopyableBuilder<LifecycleRuleFilter.Builder,LifecycleRuleFilter>
  • Method Details

    • prefix

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

      When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.

      Parameters:
      prefix - Prefix identifying one or more objects to which the rule applies.

      When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tag

      Sets the value of the Tag property for this object.
      Parameters:
      tag - The new value for the Tag property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tag

      Sets the value of the Tag property for this object. 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 tag(S3Tag).

      Parameters:
      tag - 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:
    • and

      The container for the AND condition for the lifecycle rule.

      Parameters:
      and - The container for the AND condition for the lifecycle rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • and

      The container for the AND condition for the lifecycle rule.

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

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

      Parameters:
      and - a consumer that will call methods on LifecycleRuleAndOperator.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • objectSizeGreaterThan

      LifecycleRuleFilter.Builder objectSizeGreaterThan(Long objectSizeGreaterThan)

      Minimum object size to which the rule applies.

      Parameters:
      objectSizeGreaterThan - Minimum object size to which the rule applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • objectSizeLessThan

      LifecycleRuleFilter.Builder objectSizeLessThan(Long objectSizeLessThan)

      Maximum object size to which the rule applies.

      Parameters:
      objectSizeLessThan - Maximum object size to which the rule applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.