public static class BucketLifecycleConfiguration.NoncurrentVersionTransition extends Object implements Serializable
Constructor and Description |
---|
NoncurrentVersionTransition() |
Modifier and Type | Method and Description |
---|---|
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.
|
StorageClass |
getStorageClass()
Deprecated.
This method should not be used. Use
getStorageClassAsString()
instead. |
String |
getStorageClassAsString()
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.
|
BucketLifecycleConfiguration.NoncurrentVersionTransition |
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.
|
BucketLifecycleConfiguration.NoncurrentVersionTransition |
withStorageClass(StorageClass storageClass)
Sets the storage class of this object and returns a reference to this object for method
chaining.
|
BucketLifecycleConfiguration.NoncurrentVersionTransition |
withStorageClass(String storageClass)
Sets the storage class of this object and returns a reference to this object for method
chaining.
|
public void setDays(int expirationInDays)
public int getDays()
public BucketLifecycleConfiguration.NoncurrentVersionTransition withDays(int expirationInDays)
public void setStorageClass(StorageClass storageClass)
public void setStorageClass(String storageClass)
@Deprecated public StorageClass getStorageClass()
getStorageClassAsString()
instead.public String getStorageClassAsString()
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(StorageClass storageClass)
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(String storageClass)
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.