public class LifecycleFilter extends Object implements Serializable
LifecycleFilter is used to identify objects that a Lifecycle Rule applies to.
This predicate in LifecycleFilter should be one of
LifecyclePrefixPredicate, LifecycleTagPredicate, or
LifecycleAndOperator.| 构造器和说明 |
|---|
LifecycleFilter() |
LifecycleFilter(LifecycleFilterPredicate predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
LifecycleFilterPredicate |
getPredicate()
Returns the
LifecycleFilterPredicate to be applied to BucketLifecycleConfiguration.Rule. |
void |
setPredicate(LifecycleFilterPredicate predicate)
Sets the
LifecycleFilterPredicate to be applied to BucketLifecycleConfiguration.Rule. |
LifecycleFilter |
withPredicate(LifecycleFilterPredicate predicate)
Sets the
LifecycleFilterPredicate to be applied to BucketLifecycleConfiguration.Rule and returns the object
for method chaining. |
public LifecycleFilter()
public LifecycleFilter(LifecycleFilterPredicate predicate)
public LifecycleFilterPredicate getPredicate()
LifecycleFilterPredicate to be applied to BucketLifecycleConfiguration.Rule.
The predicate is one of LifecyclePrefixPredicate,
LifecycleTagPredicate or
LifecycleAndOperator type.public void setPredicate(LifecycleFilterPredicate predicate)
LifecycleFilterPredicate to be applied to BucketLifecycleConfiguration.Rule.
The predicate should be one of LifecyclePrefixPredicate,
LifecycleTagPredicate or
LifecycleAndOperator type.predicate - An object of type LifecycleFilterPredicate.public LifecycleFilter withPredicate(LifecycleFilterPredicate predicate)
LifecycleFilterPredicate to be applied to BucketLifecycleConfiguration.Rule and returns the object
for method chaining.
The predicate should be one of LifecyclePrefixPredicate,
LifecycleTagPredicate or
LifecycleAndOperator type.predicate - An object of type LifecycleFilterPredicate.Copyright © 2021. All rights reserved.