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

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

public static class BucketLifecycleConfiguration.NoncurrentVersionTransition
extends java.lang.Object

The non-current-version transition attribute of the rule, describing how non-current versions of objects will move between different storage classes in Amazon S3.


Constructor Summary
BucketLifecycleConfiguration.NoncurrentVersionTransition()
           
 
Method Summary
 int getDays()
          Returns the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived.
 StorageClass getStorageClass()
          Returns the storage class of this object.
 void setDays(int expirationInDays)
          Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions are archived.
 void setStorageClass(StorageClass storageClass)
          Sets the storage class of this object.
 BucketLifecycleConfiguration.NoncurrentVersionTransition withDays(int expirationInDays)
          Sets the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived, and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.NoncurrentVersionTransition withStorageClass(StorageClass storageClass)
          Sets the storage class of this object and returns a reference to this object for method chaining.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BucketLifecycleConfiguration.NoncurrentVersionTransition

public BucketLifecycleConfiguration.NoncurrentVersionTransition()
Method Detail

setDays

public void setDays(int expirationInDays)
Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions are archived.


getDays

public int getDays()
Returns the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived.


withDays

public BucketLifecycleConfiguration.NoncurrentVersionTransition withDays(int expirationInDays)
Sets the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived, and returns a reference to this object for method chaining.


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.NoncurrentVersionTransition withStorageClass(StorageClass storageClass)
Sets the storage class of this object and returns a reference to this object for method chaining.



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