public class DefaultRetention extends Object implements Serializable
Constructor and Description |
---|
DefaultRetention() |
Modifier and Type | Method and Description |
---|---|
Integer |
getDays()
The number of days that you want to specify for the default retention period.
|
String |
getMode()
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
|
Integer |
getYears()
The number of years that you want to specify for the default retention period.
|
void |
setDays(Integer days)
The number of days that you want to specify for the default retention period.
|
void |
setMode(ObjectLockRetentionMode mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
|
void |
setMode(String mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
|
void |
setYears(Integer years)
The number of years that you want to specify for the default retention period.
|
DefaultRetention |
withDays(Integer days)
The number of days that you want to specify for the default retention period.
|
DefaultRetention |
withMode(ObjectLockRetentionMode mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
|
DefaultRetention |
withMode(String mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
|
DefaultRetention |
withYears(Integer years)
The number of years that you want to specify for the default retention period.
|
public String getMode()
public DefaultRetention withMode(String mode)
public DefaultRetention withMode(ObjectLockRetentionMode mode)
public void setMode(ObjectLockRetentionMode mode)
public void setMode(String mode)
public Integer getDays()
public DefaultRetention withDays(Integer days)
public void setDays(Integer days)
public Integer getYears()
public DefaultRetention withYears(Integer years)
public void setYears(Integer years)
Copyright © 2022. All rights reserved.