Package com.emc.object.s3.bean
Class LifecycleRule
- java.lang.Object
-
- com.emc.object.s3.bean.LifecycleRule
-
public class LifecycleRule extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
LifecycleRule.AbortIncompleteMultipartUpload
protected static class
LifecycleRule.Expiration
protected static class
LifecycleRule.NoncurrentVersionExpiration
static class
LifecycleRule.Status
-
Constructor Summary
Constructors Constructor Description LifecycleRule()
LifecycleRule(java.lang.String id, java.lang.String prefix, LifecycleRule.Status status)
LifecycleRule(java.lang.String id, java.lang.String prefix, LifecycleRule.Status status, java.lang.Integer expirationDays)
Deprecated.please use builder methods insteadLifecycleRule(java.lang.String id, java.lang.String prefix, LifecycleRule.Status status, java.util.Date expirationDate)
Deprecated.please use builder methods instead
-
Method Summary
-
-
-
Constructor Detail
-
LifecycleRule
public LifecycleRule()
-
LifecycleRule
public LifecycleRule(java.lang.String id, java.lang.String prefix, LifecycleRule.Status status)
-
LifecycleRule
@Deprecated public LifecycleRule(java.lang.String id, java.lang.String prefix, LifecycleRule.Status status, java.lang.Integer expirationDays)
Deprecated.please use builder methods instead- See Also:
withExpirationDays(Integer)
-
LifecycleRule
@Deprecated public LifecycleRule(java.lang.String id, java.lang.String prefix, LifecycleRule.Status status, java.util.Date expirationDate)
Deprecated.please use builder methods instead- See Also:
withExpirationDate(Date)
-
-
Method Detail
-
withId
public LifecycleRule withId(java.lang.String id)
-
withPrefix
public LifecycleRule withPrefix(java.lang.String prefix)
-
withStatus
public LifecycleRule withStatus(LifecycleRule.Status status)
-
withExpirationDays
public LifecycleRule withExpirationDays(java.lang.Integer expirationDays)
-
withExpirationDate
public LifecycleRule withExpirationDate(java.util.Date expirationDate)
-
withNoncurrentVersionExpirationDays
public LifecycleRule withNoncurrentVersionExpirationDays(java.lang.Integer days)
-
withAbortIncompleteMultipartUploadDays
public LifecycleRule withAbortIncompleteMultipartUploadDays(java.lang.Integer days)
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getPrefix
public java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
getStatus
public LifecycleRule.Status getStatus()
-
setStatus
public void setStatus(LifecycleRule.Status status)
-
getExpiration
protected LifecycleRule.Expiration getExpiration()
-
setExpiration
protected void setExpiration(LifecycleRule.Expiration expiration)
-
getExpirationDays
public java.lang.Integer getExpirationDays()
-
setExpirationDays
public void setExpirationDays(java.lang.Integer expirationDays)
-
getExpirationDate
public java.util.Date getExpirationDate()
-
setExpirationDate
public void setExpirationDate(java.util.Date expirationDate)
-
getNoncurrentVersionExpiration
protected LifecycleRule.NoncurrentVersionExpiration getNoncurrentVersionExpiration()
-
setNoncurrentVersionExpiration
protected void setNoncurrentVersionExpiration(LifecycleRule.NoncurrentVersionExpiration noncurrentVersionExpiration)
-
getNoncurrentVersionExpirationDays
public java.lang.Integer getNoncurrentVersionExpirationDays()
-
setNoncurrentVersionExpirationDays
public void setNoncurrentVersionExpirationDays(java.lang.Integer noncurrentDays)
-
getAbortIncompleteMultipartUpload
protected LifecycleRule.AbortIncompleteMultipartUpload getAbortIncompleteMultipartUpload()
-
setAbortIncompleteMultipartUpload
protected void setAbortIncompleteMultipartUpload(LifecycleRule.AbortIncompleteMultipartUpload abortIncompleteMultipartUpload)
-
getAbortIncompleteMultipartUploadDays
public java.lang.Integer getAbortIncompleteMultipartUploadDays()
-
setAbortIncompleteMultipartUploadDays
public void setAbortIncompleteMultipartUploadDays(java.lang.Integer daysAfterInitiation)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-