Package com.amazonaws.services.s3.model
Class BucketLifecycleConfiguration.Transition
- java.lang.Object
-
- com.amazonaws.services.s3.model.BucketLifecycleConfiguration.Transition
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketLifecycleConfiguration
public static class BucketLifecycleConfiguration.Transition extends Object implements Serializable
The transition attribute of the rule describing how this object will move between different storage classes in Amazon S3.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Transition()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DategetDate()Returns the expiration date of this object.intgetDays()Returns the time in days from an object's creation to its expiration.StorageClassgetStorageClass()Deprecated.This method should not be used.StringgetStorageClassAsString()Returns the storage class of this object.voidsetDate(Date expirationDate)Set the expiration date of this object.voidsetDays(int expirationInDays)Sets the time, in days, between when an object is uploaded to the bucket and when it expires.voidsetStorageClass(StorageClass storageClass)Sets the storage class of this object.voidsetStorageClass(String storageClass)Sets the storage class of this object.BucketLifecycleConfiguration.TransitionwithDate(Date expirationDate)Set the expiration date of this object and returns a reference to this object(Transition) for method chaining.BucketLifecycleConfiguration.TransitionwithDays(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.TransitionwithStorageClass(StorageClass storageClass)Sets the storage class of this object and returns a reference to this object for method chaining.BucketLifecycleConfiguration.TransitionwithStorageClass(String storageClass)Sets the storage class of this object and returns a reference to this object for method chaining.
-
-
-
Method Detail
-
setDays
public void setDays(int expirationInDays)
Sets the time, in days, between when an object is uploaded to the bucket and when it expires.
-
getDays
public int getDays()
Returns the time in days from an object's creation to its expiration.
-
withDays
public 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.
-
setStorageClass
public void setStorageClass(StorageClass storageClass)
Sets the storage class of this object.
-
setStorageClass
public void setStorageClass(String storageClass)
Sets the storage class of this object.
-
getStorageClass
@Deprecated public StorageClass getStorageClass()
Deprecated.This method should not be used. UsegetStorageClassAsString()instead.Returns the storage class of this object.
-
getStorageClassAsString
public String getStorageClassAsString()
Returns the storage class of this object.
-
withStorageClass
public BucketLifecycleConfiguration.Transition withStorageClass(StorageClass storageClass)
Sets the storage class of this object and returns a reference to this object for method chaining.
-
withStorageClass
public BucketLifecycleConfiguration.Transition withStorageClass(String storageClass)
Sets the storage class of this object and returns a reference to this object for method chaining.
-
setDate
public void setDate(Date expirationDate)
Set the expiration date of this object.
-
getDate
public Date getDate()
Returns the expiration date of this object.
-
withDate
public BucketLifecycleConfiguration.Transition withDate(Date expirationDate)
Set the expiration date of this object and returns a reference to this object(Transition) for method chaining.
-
-