public class LifecycleFilter
extends java.lang.Object
implements java.io.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
.Constructor and Description |
---|
LifecycleFilter()
Constructor.
|
LifecycleFilter(LifecycleFilterPredicate predicate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
LifecycleFilterPredicate |
getPredicate() |
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)
predicate
- the LifecycleFilterPredicate.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 © 2018 Amazon Web Services, Inc. All Rights Reserved.