public static class BucketLifecycleConfiguration.NoncurrentVersionTransition extends Object implements Serializable
| 构造器和说明 |
|---|
NoncurrentVersionTransition() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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)
public String getStorageClassAsString()
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(StorageClass storageClass)
public BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(String storageClass)
Copyright © 2021. All rights reserved.