Package com.amazonaws.services.s3.model
Class BucketLifecycleConfiguration
java.lang.Object
com.amazonaws.services.s3.model.BucketLifecycleConfiguration
- All Implemented Interfaces:
Serializable
Container for bucket lifecycle configuration operations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
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
static class
The transition attribute of the rule describing how this object will move between different storage classes in Amazon S3. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRules()
Returns the list of rules that comprise this configuration.void
Sets the rules that comprise this configuration.withRules
(BucketLifecycleConfiguration.Rule... rules) Convenience array style method forwithRules(List)
Sets the rules that comprise this configuration and returns a reference to this object for easy method chaining.
-
Field Details
-
ENABLED
Constant for an enabled rule. -
DISABLED
Constant for a disabled rule.
-
-
Constructor Details
-
BucketLifecycleConfiguration
Constructs a newBucketLifecycleConfiguration
object with the rules given.- Parameters:
rules
-
-
BucketLifecycleConfiguration
public BucketLifecycleConfiguration()
-
-
Method Details
-
getRules
Returns the list of rules that comprise this configuration. -
setRules
Sets the rules that comprise this configuration. -
withRules
Sets the rules that comprise this configuration and returns a reference to this object for easy method chaining. -
withRules
Convenience array style method forwithRules(List)
-