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.
|
int |
getNewerNoncurrentVersions()
Specifies how many noncurrent versions Amazon S3 will retain.
|
StorageClass |
getStorageClass()
Deprecated.
This method should not be used. Use
BucketLifecycleConfiguration.NoncurrentVersionTransition.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 |
setNewerNoncurrentVersions(int newerNoncurrentVersions)
Specifies how many noncurrent versions Amazon S3 will retain.
|
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 |
withNewerNoncurrentVersions(int newerNoncurrentVersions)
Specifies how many noncurrent versions Amazon S3 will retain.
|
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()
BucketLifecycleConfiguration.NoncurrentVersionTransition.getStorageClassAsString()
instead.public String getStorageClassAsString()
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(StorageClass storageClass)
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(String storageClass)
public void setNewerNoncurrentVersions(int newerNoncurrentVersions)
public int getNewerNoncurrentVersions()
public BucketLifecycleConfiguration.NoncurrentVersionTransition withNewerNoncurrentVersions(int newerNoncurrentVersions)
Copyright © 2024. All rights reserved.