Package com.amazonaws.services.s3.model
Class BucketLifecycleConfiguration.NoncurrentVersionTransition
java.lang.Object
com.amazonaws.services.s3.model.BucketLifecycleConfiguration.NoncurrentVersionTransition
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketLifecycleConfiguration
public static class BucketLifecycleConfiguration.NoncurrentVersionTransition
extends Object
implements Serializable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getDays()
Returns the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived.Deprecated.This method should not be used.Returns the storage class of this object.void
setDays
(int expirationInDays) Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions are archived.void
setStorageClass
(StorageClass storageClass) Sets the storage class of this object.void
setStorageClass
(String storageClass) Sets the storage class of this object.withDays
(int expirationInDays) Sets the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived, and returns a reference to this object for method chaining.withStorageClass
(StorageClass storageClass) Sets the storage class of this object and returns a reference to this object for method chaining.withStorageClass
(String storageClass) Sets the storage class of this object and returns a reference to this object for method chaining.
-
Constructor Details
-
NoncurrentVersionTransition
public NoncurrentVersionTransition()
-
-
Method Details
-
setDays
public void setDays(int expirationInDays) Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions are archived. -
getDays
public int getDays()Returns the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived. -
withDays
Sets the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived, and returns a reference to this object for method chaining. -
setStorageClass
Sets the storage class of this object. -
setStorageClass
Sets the storage class of this object. -
getStorageClass
Deprecated.This method should not be used. UsegetStorageClassAsString()
instead.Returns the storage class of this object. -
getStorageClassAsString
Returns the storage class of this object. -
withStorageClass
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(StorageClass storageClass) Sets the storage class of this object and returns a reference to this object for method chaining. -
withStorageClass
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(String storageClass) Sets the storage class of this object and returns a reference to this object for method chaining.
-