@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecycleRule extends Object implements Serializable, Cloneable
The container for the Outposts bucket lifecycle rule.
Constructor and Description |
---|
LifecycleRule() |
Modifier and Type | Method and Description |
---|---|
LifecycleRule |
clone() |
boolean |
equals(Object obj) |
AbortIncompleteMultipartUpload |
getAbortIncompleteMultipartUpload()
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently
removing all parts of the upload.
|
LifecycleExpiration |
getExpiration()
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a
delete marker.
|
LifecycleRuleFilter |
getFilter()
The container for the filter of lifecycle rule.
|
String |
getID()
Unique identifier for the rule.
|
NoncurrentVersionExpiration |
getNoncurrentVersionExpiration()
The noncurrent version expiration of the lifecycle rule.
|
List<NoncurrentVersionTransition> |
getNoncurrentVersionTransitions()
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
String |
getStatus()
If 'Enabled', the rule is currently being applied.
|
List<Transition> |
getTransitions()
Specifies when an Amazon S3 object transitions to a specified storage class.
|
int |
hashCode() |
void |
setAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently
removing all parts of the upload.
|
void |
setExpiration(LifecycleExpiration expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a
delete marker.
|
void |
setFilter(LifecycleRuleFilter filter)
The container for the filter of lifecycle rule.
|
void |
setID(String iD)
Unique identifier for the rule.
|
void |
setNoncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
|
void |
setNoncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
void |
setStatus(String status)
If 'Enabled', the rule is currently being applied.
|
void |
setTransitions(Collection<Transition> transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
|
String |
toString()
Returns a string representation of this object.
|
LifecycleRule |
withAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently
removing all parts of the upload.
|
LifecycleRule |
withExpiration(LifecycleExpiration expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a
delete marker.
|
LifecycleRule |
withFilter(LifecycleRuleFilter filter)
The container for the filter of lifecycle rule.
|
LifecycleRule |
withID(String iD)
Unique identifier for the rule.
|
LifecycleRule |
withNoncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
|
LifecycleRule |
withNoncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
LifecycleRule |
withNoncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a
specific storage class.
|
LifecycleRule |
withStatus(ExpirationStatus status)
If 'Enabled', the rule is currently being applied.
|
LifecycleRule |
withStatus(String status)
If 'Enabled', the rule is currently being applied.
|
LifecycleRule |
withTransitions(Collection<Transition> transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
|
LifecycleRule |
withTransitions(Transition... transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
|
public void setExpiration(LifecycleExpiration expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
expiration
- Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object
has a delete marker.public LifecycleExpiration getExpiration()
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
public LifecycleRule withExpiration(LifecycleExpiration expiration)
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
expiration
- Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object
has a delete marker.public void setID(String iD)
Unique identifier for the rule. The value cannot be longer than 255 characters.
iD
- Unique identifier for the rule. The value cannot be longer than 255 characters.public String getID()
Unique identifier for the rule. The value cannot be longer than 255 characters.
public LifecycleRule withID(String iD)
Unique identifier for the rule. The value cannot be longer than 255 characters.
iD
- Unique identifier for the rule. The value cannot be longer than 255 characters.public void setFilter(LifecycleRuleFilter filter)
The container for the filter of lifecycle rule.
filter
- The container for the filter of lifecycle rule.public LifecycleRuleFilter getFilter()
The container for the filter of lifecycle rule.
public LifecycleRule withFilter(LifecycleRuleFilter filter)
The container for the filter of lifecycle rule.
filter
- The container for the filter of lifecycle rule.public void setStatus(String status)
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
status
- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.ExpirationStatus
public String getStatus()
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
ExpirationStatus
public LifecycleRule withStatus(String status)
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
status
- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.ExpirationStatus
public LifecycleRule withStatus(ExpirationStatus status)
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
status
- If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.ExpirationStatus
public List<Transition> getTransitions()
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
This is not supported by Amazon S3 on Outposts buckets.
public void setTransitions(Collection<Transition> transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
transitions
- Specifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets.
public LifecycleRule withTransitions(Transition... transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
NOTE: This method appends the values to the existing list (if any). Use
setTransitions(java.util.Collection)
or withTransitions(java.util.Collection)
if you want to
override the existing values.
transitions
- Specifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets.
public LifecycleRule withTransitions(Collection<Transition> transitions)
Specifies when an Amazon S3 object transitions to a specified storage class.
This is not supported by Amazon S3 on Outposts buckets.
transitions
- Specifies when an Amazon S3 object transitions to a specified storage class. This is not supported by Amazon S3 on Outposts buckets.
public List<NoncurrentVersionTransition> getNoncurrentVersionTransitions()
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
This is not supported by Amazon S3 on Outposts buckets.
public void setNoncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
noncurrentVersionTransitions
- Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to
a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set
this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at
a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets.
public LifecycleRule withNoncurrentVersionTransitions(NoncurrentVersionTransition... noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
NOTE: This method appends the values to the existing list (if any). Use
setNoncurrentVersionTransitions(java.util.Collection)
or
withNoncurrentVersionTransitions(java.util.Collection)
if you want to override the existing values.
noncurrentVersionTransitions
- Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to
a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set
this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at
a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets.
public LifecycleRule withNoncurrentVersionTransitions(Collection<NoncurrentVersionTransition> noncurrentVersionTransitions)
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
This is not supported by Amazon S3 on Outposts buckets.
noncurrentVersionTransitions
- Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to
a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set
this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at
a set period in the object's lifetime. This is not supported by Amazon S3 on Outposts buckets.
public void setNoncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
noncurrentVersionExpiration
- The noncurrent version expiration of the lifecycle rule.public NoncurrentVersionExpiration getNoncurrentVersionExpiration()
The noncurrent version expiration of the lifecycle rule.
public LifecycleRule withNoncurrentVersionExpiration(NoncurrentVersionExpiration noncurrentVersionExpiration)
The noncurrent version expiration of the lifecycle rule.
noncurrentVersionExpiration
- The noncurrent version expiration of the lifecycle rule.public void setAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.
abortIncompleteMultipartUpload
- Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before
permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3
User Guide.public AbortIncompleteMultipartUpload getAbortIncompleteMultipartUpload()
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.
public LifecycleRule withAbortIncompleteMultipartUpload(AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.
abortIncompleteMultipartUpload
- Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before
permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3
User Guide.public String toString()
toString
in class Object
Object.toString()
public LifecycleRule clone()