Did this page help you?

   Yes   No   Tell us about it...

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 Object


Constructor Summary
BucketLifecycleConfiguration.Rule()
           
 
Method Summary
 Date getExpirationDate()
          Returns the expiration date of the object.
 int getExpirationInDays()
          Returns the time in days from an object's creation to its expiration.
 String getId()
          Returns the ID of this rule.
 String getPrefix()
          Returns the key prefix for which this rule will apply.
 String getStatus()
          Returns the status of this rule.
 BucketLifecycleConfiguration.Transition getTransition()
          Returns the transition attribute of the rule.
 void setExpirationDate(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(String id)
          Sets the ID of this rule.
 void setPrefix(String prefix)
          Sets the key prefix for which this rule will apply.
 void setStatus(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(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(String id)
          Sets the ID of this rule and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withPrefix(String prefix)
          Sets the key prefix for this rule and returns a reference to this object for method chaining.
 BucketLifecycleConfiguration.Rule withStatus(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(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(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.


getId

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


withId

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

See Also:
setId(String)

getPrefix

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


withPrefix

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

getStatus

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

See Also:
BucketLifecycleConfiguration.DISABLED, BucketLifecycleConfiguration.ENABLED

setStatus

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

See Also:
BucketLifecycleConfiguration.DISABLED, BucketLifecycleConfiguration.ENABLED

withStatus

public BucketLifecycleConfiguration.Rule withStatus(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(Date expirationDate)
Sets the expiration date of the object.


getExpirationDate

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


withExpirationDate

public BucketLifecycleConfiguration.Rule withExpirationDate(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.



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