Package com.emc.object.s3.bean
Class DefaultRetention
- java.lang.Object
-
- com.emc.object.s3.bean.DefaultRetention
-
- All Implemented Interfaces:
java.io.Serializable
public class DefaultRetention extends java.lang.Object implements java.io.Serializable
DefaultRetention requires both a mode and a period. The period can be either Days or Years, not both.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultRetention()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getDays()
ObjectLockRetentionMode
getMode()
java.lang.Integer
getYears()
void
setDays(java.lang.Integer days)
void
setMode(ObjectLockRetentionMode mode)
void
setYears(java.lang.Integer years)
DefaultRetention
withDays(java.lang.Integer days)
DefaultRetention
withMode(ObjectLockRetentionMode mode)
DefaultRetention
withYears(java.lang.Integer years)
-
-
-
Method Detail
-
getMode
public ObjectLockRetentionMode getMode()
-
setMode
public void setMode(ObjectLockRetentionMode mode)
-
withMode
public DefaultRetention withMode(ObjectLockRetentionMode mode)
-
getDays
public java.lang.Integer getDays()
-
setDays
public void setDays(java.lang.Integer days)
-
withDays
public DefaultRetention withDays(java.lang.Integer days)
-
getYears
public java.lang.Integer getYears()
-
setYears
public void setYears(java.lang.Integer years)
-
withYears
public DefaultRetention withYears(java.lang.Integer years)
-
-