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 classThe 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 classstatic classThe 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.voidSets 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
-
DISABLED
-
-
Constructor Details
-
BucketLifecycleConfiguration
Constructs a newBucketLifecycleConfigurationobject 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)
-