Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.s3.model
Class BucketLifecycleConfiguration.Transition

java.lang.Object
  extended by com.amazonaws.services.s3.model.BucketLifecycleConfiguration.Transition
Enclosing class:
BucketLifecycleConfiguration

public static class BucketLifecycleConfiguration.Transition
extends Object

The transition attribute of the rule describing how this object will move between different storage classes in Amazon S3.


Constructor Summary
BucketLifecycleConfiguration.Transition()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BucketLifecycleConfiguration.Transition

public BucketLifecycleConfiguration.Transition()
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.

See Also:
BucketLifecycleConfiguration.Rule.setExpirationInDays(int)

setStorageClass

public void setStorageClass(StorageClass storageClass)
Sets the storage class of this object.


getStorageClass

public StorageClass getStorageClass()
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(Transition) 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.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.