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.
|
String |
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(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(String storageClass)
Sets the storage class of this object and returns a reference to this object(Transition)
for method chaining.
|
public void setDays(int expirationInDays)
public int getDays()
public BucketLifecycleConfiguration.Transition withDays(int expirationInDays)
public void setStorageClass(String storageClass)
public String getStorageClass()
public BucketLifecycleConfiguration.Transition withStorageClass(String storageClass)
public void setDate(Date expirationDate)
public Date getDate()
public BucketLifecycleConfiguration.Transition withDate(Date expirationDate)
Copyright © 2023. All rights reserved.