@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecycleExpiration extends Object implements Serializable, Cloneable
The container of the Outposts bucket lifecycle expiration.
Constructor and Description |
---|
LifecycleExpiration() |
Modifier and Type | Method and Description |
---|---|
LifecycleExpiration |
clone() |
boolean |
equals(Object obj) |
Date |
getDate()
Indicates at what date the object is to be deleted.
|
Integer |
getDays()
Indicates the lifetime, in days, of the objects that are subject to the rule.
|
Boolean |
getExpiredObjectDeleteMarker()
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
|
int |
hashCode() |
Boolean |
isExpiredObjectDeleteMarker()
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
|
void |
setDate(Date date)
Indicates at what date the object is to be deleted.
|
void |
setDays(Integer days)
Indicates the lifetime, in days, of the objects that are subject to the rule.
|
void |
setExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
|
String |
toString()
Returns a string representation of this object.
|
LifecycleExpiration |
withDate(Date date)
Indicates at what date the object is to be deleted.
|
LifecycleExpiration |
withDays(Integer days)
Indicates the lifetime, in days, of the objects that are subject to the rule.
|
LifecycleExpiration |
withExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
|
public void setDate(Date date)
Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.
date
- Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.public Date getDate()
Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.
public LifecycleExpiration withDate(Date date)
Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.
date
- Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.public void setDays(Integer days)
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
days
- Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero
positive integer.public Integer getDays()
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
public LifecycleExpiration withDays(Integer days)
Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
days
- Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero
positive integer.public void setExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
expiredObjectDeleteMarker
- Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the
delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with
Days or Date in a Lifecycle Expiration Policy.public Boolean getExpiredObjectDeleteMarker()
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
public LifecycleExpiration withExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
expiredObjectDeleteMarker
- Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the
delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with
Days or Date in a Lifecycle Expiration Policy.public Boolean isExpiredObjectDeleteMarker()
Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.
public String toString()
toString
in class Object
Object.toString()
public LifecycleExpiration clone()