public static class BucketLifecycleConfiguration.Rule extends Object
Constructor and Description |
---|
BucketLifecycleConfiguration.Rule() |
Modifier and Type | Method and Description |
---|---|
BucketLifecycleConfiguration.Rule |
addNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition noncurrentVersionTransition)
Adds a new Non current transition to the rule.
|
BucketLifecycleConfiguration.Rule |
addTransition(BucketLifecycleConfiguration.Transition transition)
Adds a new transition to the rule.
|
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.
|
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()
Deprecated.
|
List<BucketLifecycleConfiguration.NoncurrentVersionTransition> |
getNoncurrentVersionTransitions()
Returns the Amazon S3 non current object transition rules associated
with the given rule.
|
String |
getPrefix()
Returns the key prefix for which this rule will apply.
|
String |
getStatus()
Returns the status of this rule.
|
BucketLifecycleConfiguration.Transition |
getTransition()
Deprecated.
|
List<BucketLifecycleConfiguration.Transition> |
getTransitions()
Returns the Amazon S3 object transition rules associated with the
given 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 |
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 nonCurrentVersionTransition)
Deprecated.
|
void |
setNoncurrentVersionTransitions(List<BucketLifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions)
Sets the Amazon S3 non current object transition rules for the given bucket.
|
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)
Deprecated.
|
void |
setTransitions(List<BucketLifecycleConfiguration.Transition> transitions)
Sets the Amazon S3 object transition rules for the given bucket.
|
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 |
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 nonCurrentVersionTransition)
Deprecated.
|
BucketLifecycleConfiguration.Rule |
withNoncurrentVersionTransitions(List<BucketLifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions)
Sets the Amazon S3 non current object transition rules for the given bucket.
|
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)
Deprecated.
|
BucketLifecycleConfiguration.Rule |
withTransitions(List<BucketLifecycleConfiguration.Transition> transitions)
Sets the Amazon S3 object transition rules for the given bucket.
|
public void setId(String id)
public void setPrefix(String prefix)
public void setExpirationInDays(int expirationInDays)
public void setNoncurrentVersionExpirationInDays(int value)
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 int getNoncurrentVersionExpirationInDays()
public BucketLifecycleConfiguration.Rule withNoncurrentVersionExpirationInDays(int value)
public String getStatus()
public void setStatus(String status)
public BucketLifecycleConfiguration.Rule withStatus(String status)
public void setExpirationDate(Date expirationDate)
public Date getExpirationDate()
public BucketLifecycleConfiguration.Rule withExpirationDate(Date expirationDate)
@Deprecated public void setTransition(BucketLifecycleConfiguration.Transition transition)
setTransitions(List)
@Deprecated public BucketLifecycleConfiguration.Transition getTransition()
@Deprecated public BucketLifecycleConfiguration.Rule withTransition(BucketLifecycleConfiguration.Transition transition)
@Deprecated public void setNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition nonCurrentVersionTransition)
setNoncurrentVersionTransitions(List)
@Deprecated public BucketLifecycleConfiguration.NoncurrentVersionTransition getNoncurrentVersionTransition()
getNoncurrentVersionTransitions()
@Deprecated public BucketLifecycleConfiguration.Rule withNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition nonCurrentVersionTransition)
withNoncurrentVersionTransitions(List)
Returns a updated reference of this object.public List<BucketLifecycleConfiguration.Transition> getTransitions()
public void setTransitions(List<BucketLifecycleConfiguration.Transition> transitions)
public BucketLifecycleConfiguration.Rule withTransitions(List<BucketLifecycleConfiguration.Transition> transitions)
public BucketLifecycleConfiguration.Rule addTransition(BucketLifecycleConfiguration.Transition transition)
public List<BucketLifecycleConfiguration.NoncurrentVersionTransition> getNoncurrentVersionTransitions()
public void setNoncurrentVersionTransitions(List<BucketLifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions)
public BucketLifecycleConfiguration.Rule withNoncurrentVersionTransitions(List<BucketLifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions)
public BucketLifecycleConfiguration.Rule addNoncurrentVersionTransition(BucketLifecycleConfiguration.NoncurrentVersionTransition noncurrentVersionTransition)
Copyright © 2015. All rights reserved.