public class BucketLifecycleConfiguration extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
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.
|
void |
setRules(List<BucketLifecycleConfiguration.Rule> rules)
Sets the rules that comprise 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.
|
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)
Copyright © 2018. All rights reserved.