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

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

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


Constructor Summary
BucketLifecycleConfiguration.Rule()
           
 
Method Summary
 java.util.Date getExpirationDate()
          Returns the expiration date of the object.
 int getExpirationInDays()
          Returns the time in days from an object's creation to its expiration.
 java.lang.String getId()
          Returns the ID of this rule.
 int getNoncurrentVersionExpirationInDays()
          Returns the time, in days, between when a new version of the object is uploaded to the bucket and when older versions of the object expire.
 BucketLifecycleConfiguration.NoncurrentVersionTransition getNoncurrentVersionTransition()
          Returns the transition describing how non-current versions of objects will move between different storage classes in Amazon S3.
 java.lang.String getPrefix()
          Returns the key prefix for which this rule will apply.
 java.lang.String getStatus()
          Returns the status of this rule.
 BucketLifecycleConfiguration.Transition getTransition()
          Returns the transition attribute of the rule.
 void setExpirationDate(java.util.Date expirationDate)
          Sets the expiration date of the object.
 void setExpirationInDays(int expirationInDays)
          Sets the time, in days, between when an object is uploaded to the bucket and when it expires.
 void setId(java.lang.String id)
          Sets the ID of this rule.
 void setNoncurrentVersionExpirationInDays(int value)
          Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions of the object expire.
 void setNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition value)
          Sets the transition describing how non-current versions of objects will move between different storage classes in Amazon S3.
 void setPrefix(java.lang.String prefix)
          Sets the key prefix for which this rule will apply.
 void setStatus(java.lang.String status)
          Sets the status of this rule.
 void setTransition(BucketLifecycleConfiguration.Transition transition)
          Sets the transition describing how this object will move between different storage classes in Amazon S3.
 BucketLifecycleConfiguration.Rule withExpirationDate(java.util.Date expirationDate)
          Sets the expiration date of the object and returns a reference to this object(Rule) for method chaining.
 BucketLifecycleConfiguration.Rule withExpirationInDays(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.Rule withId(java.lang.String id)
          Sets the ID of this rule and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withNoncurrentVersionExpirationInDays(int value)
          Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions of the object expire, and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition value)
          Sets the transition describing how non-current versions of objects will move between different storage classes in Amazon S3, and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withPrefix(java.lang.String prefix)
          Sets the key prefix for this rule and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withStatus(java.lang.String status)
          Sets the status of this rule and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withTransition(BucketLifecycleConfiguration.Transition transition)
          Sets the transition describing how this object will move between different storage classes in Amazon S3 and returns a reference to this object(Rule) for method chaining.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BucketLifecycleConfiguration.Rule

public BucketLifecycleConfiguration.Rule()
Method Detail

setId

public void setId(java.lang.String id)
Sets the ID of this rule. Rules must be less than 255 alphanumeric characters, and must be unique for a bucket. If you do not assign an ID, one will be generated.


setPrefix

public void setPrefix(java.lang.String prefix)
Sets the key prefix for which this rule will apply.


setExpirationInDays

public void setExpirationInDays(int expirationInDays)
Sets the time, in days, between when an object is uploaded to the bucket and when it expires.


setNoncurrentVersionExpirationInDays

public void setNoncurrentVersionExpirationInDays(int value)
Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions of the object expire.


getId

public java.lang.String getId()
Returns the ID of this rule.


withId

public BucketLifecycleConfiguration.Rule withId(java.lang.String id)
Sets the ID of this rule and returns a reference to this object for method chaining.

See Also:
setId(String)

getPrefix

public java.lang.String getPrefix()
Returns the key prefix for which this rule will apply.


withPrefix

public BucketLifecycleConfiguration.Rule withPrefix(java.lang.String prefix)
Sets the key prefix for this rule and returns a reference to this object for method chaining.

See Also:
setPrefix(String)

getExpirationInDays

public int getExpirationInDays()
Returns the time in days from an object's creation to its expiration.


withExpirationInDays

public BucketLifecycleConfiguration.Rule withExpirationInDays(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:
setExpirationInDays(int)

getNoncurrentVersionExpirationInDays

public int getNoncurrentVersionExpirationInDays()
Returns the time, in days, between when a new version of the object is uploaded to the bucket and when older versions of the object expire.


withNoncurrentVersionExpirationInDays

public BucketLifecycleConfiguration.Rule withNoncurrentVersionExpirationInDays(int value)
Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions of the object expire, and returns a reference to this object for method chaining.


getStatus

public java.lang.String getStatus()
Returns the status of this rule.

See Also:
BucketLifecycleConfiguration.DISABLED, BucketLifecycleConfiguration.ENABLED

setStatus

public void setStatus(java.lang.String status)
Sets the status of this rule.

See Also:
BucketLifecycleConfiguration.DISABLED, BucketLifecycleConfiguration.ENABLED

withStatus

public BucketLifecycleConfiguration.Rule withStatus(java.lang.String status)
Sets the status of this rule and returns a reference to this object for method chaining.

See Also:
setStatus(String), BucketLifecycleConfiguration.DISABLED, BucketLifecycleConfiguration.ENABLED

setExpirationDate

public void setExpirationDate(java.util.Date expirationDate)
Sets the expiration date of the object.


getExpirationDate

public java.util.Date getExpirationDate()
Returns the expiration date of the object.


withExpirationDate

public BucketLifecycleConfiguration.Rule withExpirationDate(java.util.Date expirationDate)
Sets the expiration date of the object and returns a reference to this object(Rule) for method chaining.


setTransition

public void setTransition(BucketLifecycleConfiguration.Transition transition)
Sets the transition describing how this object will move between different storage classes in Amazon S3.


getTransition

public BucketLifecycleConfiguration.Transition getTransition()
Returns the transition attribute of the rule.


withTransition

public BucketLifecycleConfiguration.Rule withTransition(BucketLifecycleConfiguration.Transition transition)
Sets the transition describing how this object will move between different storage classes in Amazon S3 and returns a reference to this object(Rule) for method chaining.


setNoncurrentVersionTransition

public void setNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition value)
Sets the transition describing how non-current versions of objects will move between different storage classes in Amazon S3.


getNoncurrentVersionTransition

public BucketLifecycleConfiguration.NoncurrentVersionTransition getNoncurrentVersionTransition()
Returns the transition describing how non-current versions of objects will move between different storage classes in Amazon S3.


withNoncurrentVersionTransition

public BucketLifecycleConfiguration.Rule withNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition value)
Sets the transition describing how non-current versions of objects will move between different storage classes in Amazon S3, and returns a reference to this object for method chaining.



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