|
|||||||
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 | |
---|---|
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 |
---|
public BucketLifecycleConfiguration.Rule()
Method Detail |
---|
public void setId(String id)
public void setPrefix(String prefix)
public void setExpirationInDays(int expirationInDays)
public String getId()
public BucketLifecycleConfiguration.Rule withId(String id)
setId(String)
public String getPrefix()
public BucketLifecycleConfiguration.Rule withPrefix(String prefix)
setPrefix(String)
public int getExpirationInDays()
public BucketLifecycleConfiguration.Rule withExpirationInDays(int expirationInDays)
setExpirationInDays(int)
public String getStatus()
BucketLifecycleConfiguration.DISABLED
,
BucketLifecycleConfiguration.ENABLED
public void setStatus(String status)
BucketLifecycleConfiguration.DISABLED
,
BucketLifecycleConfiguration.ENABLED
public BucketLifecycleConfiguration.Rule withStatus(String status)
setStatus(String)
,
BucketLifecycleConfiguration.DISABLED
,
BucketLifecycleConfiguration.ENABLED
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |