public static class BucketLifecycleConfiguration.Transition extends Object implements Serializable
Constructor and Description |
---|
Transition() |
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Returns the expiration date of this object.
|
int |
getDays()
Returns the time in days from an object's creation to its expiration.
|
StorageClass |
getStorageClass()
Deprecated.
This method should not be used. Use
getStorageClassAsString()
instead. |
String |
getStorageClassAsString()
Returns the storage class of this object.
|
void |
setDate(Date expirationDate)
Set the expiration date of this object.
|
void |
setDays(int expirationInDays)
Sets the time, in days, between when an object is uploaded to the bucket and when it
expires.
|
void |
setStorageClass(StorageClass storageClass)
Sets the storage class of this object.
|
void |
setStorageClass(String storageClass)
Sets the storage class of this object.
|
BucketLifecycleConfiguration.Transition |
withDate(Date expirationDate)
Set the expiration date of this object and returns a reference to
this object(Transition) for method chaining.
|
BucketLifecycleConfiguration.Transition |
withDays(int expirationInDays)
Sets the time, in days, between when an object is uploaded to the
bucket and when it expires, and returns a reference to this object
for method chaining.
|
BucketLifecycleConfiguration.Transition |
withStorageClass(StorageClass storageClass)
Sets the storage class of this object and returns a reference to this object for method
chaining.
|
BucketLifecycleConfiguration.Transition |
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.Transition withDays(int expirationInDays)
public void setStorageClass(StorageClass storageClass)
public void setStorageClass(String storageClass)
@Deprecated public StorageClass getStorageClass()
getStorageClassAsString()
instead.public String getStorageClassAsString()
public BucketLifecycleConfiguration.Transition withStorageClass(StorageClass storageClass)
public BucketLifecycleConfiguration.Transition withStorageClass(String storageClass)
public void setDate(Date expirationDate)
public Date getDate()
public BucketLifecycleConfiguration.Transition withDate(Date expirationDate)
Copyright © 2022. All rights reserved.