public static class BucketLifecycleConfiguration.Transition
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Transition() |
Modifier and Type | Method and Description |
---|---|
java.util.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. |
java.lang.String |
getStorageClassAsString()
Returns the storage class of this object.
|
void |
setDate(java.util.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(java.lang.String storageClass)
Sets the storage class of this object.
|
BucketLifecycleConfiguration.Transition |
withDate(java.util.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(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.Transition 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.Transition withStorageClass(StorageClass storageClass)
public BucketLifecycleConfiguration.Transition withStorageClass(java.lang.String storageClass)
public void setDate(java.util.Date expirationDate)
public java.util.Date getDate()
public BucketLifecycleConfiguration.Transition withDate(java.util.Date expirationDate)
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.