|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.s3.model.BucketLifecycleConfiguration.Rule
public static class BucketLifecycleConfiguration.Rule
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 |
---|
public BucketLifecycleConfiguration.Rule()
Method Detail |
---|
public void setId(java.lang.String id)
public void setPrefix(java.lang.String prefix)
public void setExpirationInDays(int expirationInDays)
public void setNoncurrentVersionExpirationInDays(int value)
public java.lang.String getId()
public BucketLifecycleConfiguration.Rule withId(java.lang.String id)
setId(String)
public java.lang.String getPrefix()
public BucketLifecycleConfiguration.Rule withPrefix(java.lang.String prefix)
setPrefix(String)
public int getExpirationInDays()
public BucketLifecycleConfiguration.Rule withExpirationInDays(int expirationInDays)
setExpirationInDays(int)
public int getNoncurrentVersionExpirationInDays()
public BucketLifecycleConfiguration.Rule withNoncurrentVersionExpirationInDays(int value)
public java.lang.String getStatus()
BucketLifecycleConfiguration.DISABLED
,
BucketLifecycleConfiguration.ENABLED
public void setStatus(java.lang.String status)
BucketLifecycleConfiguration.DISABLED
,
BucketLifecycleConfiguration.ENABLED
public BucketLifecycleConfiguration.Rule withStatus(java.lang.String status)
setStatus(String)
,
BucketLifecycleConfiguration.DISABLED
,
BucketLifecycleConfiguration.ENABLED
public void setExpirationDate(java.util.Date expirationDate)
public java.util.Date getExpirationDate()
public BucketLifecycleConfiguration.Rule withExpirationDate(java.util.Date expirationDate)
public void setTransition(BucketLifecycleConfiguration.Transition transition)
public BucketLifecycleConfiguration.Transition getTransition()
public BucketLifecycleConfiguration.Rule withTransition(BucketLifecycleConfiguration.Transition transition)
public void setNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition value)
public BucketLifecycleConfiguration.NoncurrentVersionTransition getNoncurrentVersionTransition()
public BucketLifecycleConfiguration.Rule withNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |