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
 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.
 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.
 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.
 
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


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