public class BucketLifecycleConfiguration extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BucketLifecycleConfiguration.NoncurrentVersionExpiration
Specifies when noncurrent object versions expire.
|
static class |
BucketLifecycleConfiguration.NoncurrentVersionTransition
The non-current-version transition attribute of the rule, describing
how non-current versions of objects will move between different storage
classes in Amazon S3.
|
static class |
BucketLifecycleConfiguration.Rule |
static class |
BucketLifecycleConfiguration.Transition
The transition attribute of the rule describing how this object will move
between different storage classes in Amazon S3.
|
Modifier and Type | Field and Description |
---|---|
static String |
DISABLED
Constant for a disabled rule.
|
static String |
ENABLED
Constant for an enabled rule.
|
Constructor and Description |
---|
BucketLifecycleConfiguration() |
BucketLifecycleConfiguration(List<BucketLifecycleConfiguration.Rule> rules)
Constructs a new
BucketLifecycleConfiguration object with the
rules given. |
Modifier and Type | Method and Description |
---|---|
List<BucketLifecycleConfiguration.Rule> |
getRules()
Returns the list of rules that comprise this configuration.
|
TransitionDefaultMinimumObjectSize |
getTransitionDefaultMinimumObjectSize()
Returns the transition default minimum object size of this configuration.
|
String |
getTransitionDefaultMinimumObjectSizeAsString()
Returns the transition default minimum object size of this configuration.
|
void |
setRules(List<BucketLifecycleConfiguration.Rule> rules)
Sets the rules that comprise this configuration.
|
void |
setTransitionDefaultMinimumObjectSize(String transitionDefaultMinimumObjectSize)
Sets the transition default minimum object size of this configuration.
|
void |
setTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize transitionDefaultMinimumObjectSize)
Sets the transition default minimum object size of this configuration.
|
BucketLifecycleConfiguration |
withRules(BucketLifecycleConfiguration.Rule... rules)
Convenience array style method for
withRules(List) |
BucketLifecycleConfiguration |
withRules(List<BucketLifecycleConfiguration.Rule> rules)
Sets the rules that comprise this configuration and returns a reference
to this object for easy method chaining.
|
BucketLifecycleConfiguration |
withTransitionDefaultMinimumObjectSize(String transitionDefaultMinimumObjectSize)
Sets the transition default minimum object size of this configuration and returns a reference to this object
for easy method chaining.
|
BucketLifecycleConfiguration |
withTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize transitionDefaultMinimumObjectSize)
Sets the transition default minimum object size of this configuration and returns a reference to this object
for easy method chaining.
|
public static final String ENABLED
public static final String DISABLED
public BucketLifecycleConfiguration(List<BucketLifecycleConfiguration.Rule> rules)
BucketLifecycleConfiguration
object with the
rules given.rules
- public BucketLifecycleConfiguration()
public List<BucketLifecycleConfiguration.Rule> getRules()
public void setRules(List<BucketLifecycleConfiguration.Rule> rules)
public BucketLifecycleConfiguration withRules(List<BucketLifecycleConfiguration.Rule> rules)
public BucketLifecycleConfiguration withRules(BucketLifecycleConfiguration.Rule... rules)
withRules(List)
public TransitionDefaultMinimumObjectSize getTransitionDefaultMinimumObjectSize()
public String getTransitionDefaultMinimumObjectSizeAsString()
public void setTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize transitionDefaultMinimumObjectSize)
public void setTransitionDefaultMinimumObjectSize(String transitionDefaultMinimumObjectSize)
public BucketLifecycleConfiguration withTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize transitionDefaultMinimumObjectSize)
public BucketLifecycleConfiguration withTransitionDefaultMinimumObjectSize(String transitionDefaultMinimumObjectSize)