public class BucketLifecycleConfiguration
extends java.lang.Object
implements java.io.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 java.lang.String |
DISABLED
Constant for a disabled rule.
|
static java.lang.String |
ENABLED
Constant for an enabled rule.
|
Constructor and Description |
---|
BucketLifecycleConfiguration() |
BucketLifecycleConfiguration(java.util.List<BucketLifecycleConfiguration.Rule> rules)
Constructs a new
BucketLifecycleConfiguration object with the
rules given. |
Modifier and Type | Method and Description |
---|---|
java.util.List<BucketLifecycleConfiguration.Rule> |
getRules()
Returns the list of rules that comprise this configuration.
|
void |
setRules(java.util.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(java.util.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 java.lang.String ENABLED
public static final java.lang.String DISABLED
public BucketLifecycleConfiguration(java.util.List<BucketLifecycleConfiguration.Rule> rules)
BucketLifecycleConfiguration
object with the
rules given.rules
- public BucketLifecycleConfiguration()
public java.util.List<BucketLifecycleConfiguration.Rule> getRules()
public void setRules(java.util.List<BucketLifecycleConfiguration.Rule> rules)
public BucketLifecycleConfiguration withRules(java.util.List<BucketLifecycleConfiguration.Rule> rules)
public BucketLifecycleConfiguration withRules(BucketLifecycleConfiguration.Rule... rules)
withRules(List)
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.