Package com.amazonaws.services.s3.model
Class BucketLifecycleConfiguration
- java.lang.Object
-
- com.amazonaws.services.s3.model.BucketLifecycleConfiguration
-
- All Implemented Interfaces:
Serializable
public class BucketLifecycleConfiguration extends Object implements Serializable
Container for bucket lifecycle configuration operations.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.
-
Constructor Summary
Constructors Constructor Description BucketLifecycleConfiguration()
BucketLifecycleConfiguration(List<BucketLifecycleConfiguration.Rule> rules)
Constructs a newBucketLifecycleConfiguration
object with the rules given.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 forwithRules(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.
-
-
-
Constructor Detail
-
BucketLifecycleConfiguration
public BucketLifecycleConfiguration(List<BucketLifecycleConfiguration.Rule> rules)
Constructs a newBucketLifecycleConfiguration
object with the rules given.- Parameters:
rules
-
-
BucketLifecycleConfiguration
public BucketLifecycleConfiguration()
-
-
Method Detail
-
getRules
public List<BucketLifecycleConfiguration.Rule> getRules()
Returns the list of rules that comprise this configuration.
-
setRules
public void setRules(List<BucketLifecycleConfiguration.Rule> rules)
Sets the rules that comprise this configuration.
-
withRules
public BucketLifecycleConfiguration withRules(List<BucketLifecycleConfiguration.Rule> rules)
Sets the rules that comprise this configuration and returns a reference to this object for easy method chaining.
-
withRules
public BucketLifecycleConfiguration withRules(BucketLifecycleConfiguration.Rule... rules)
Convenience array style method forwithRules(List)
-
-