public static class BucketLifecycleConfiguration.NoncurrentVersionTransition
extends java.lang.Object
implements java.io.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. |
java.lang.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(java.lang.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(java.lang.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(java.lang.String storageClass)
@Deprecated public StorageClass getStorageClass()
getStorageClassAsString()
instead.public java.lang.String getStorageClassAsString()
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(StorageClass storageClass)
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(java.lang.String storageClass)
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.