public static class BucketLifecycleConfiguration.Transition extends Object
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()
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.
|
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(Transition) for method chaining.
|
public int getDays()
public void setDays(int expirationInDays)
expirationInDays
- expiration in days of the objectpublic BucketLifecycleConfiguration.Transition withDays(int expirationInDays)
expirationInDays
- expiration in days of the objectBucketLifecycleConfiguration.Rule.setExpirationInDays(int)
public StorageClass getStorageClass()
public void setStorageClass(StorageClass storageClass)
storageClass
- a storage class of the objectpublic BucketLifecycleConfiguration.Transition withStorageClass(StorageClass storageClass)
storageClass
- a storage class of the objectpublic Date getDate()
public void setDate(Date expirationDate)
expirationDate
- the expiration date of this objectpublic BucketLifecycleConfiguration.Transition withDate(Date expirationDate)
expirationDate
- the expiration date of tye objectCopyright © 2018. All rights reserved.