@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails extends Object implements Serializable, Cloneable, StructuredPojo
The default S3 Object Lock retention mode and period that you want to apply to new objects placed in the specified Amazon S3 bucket.
Constructor and Description |
---|
AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails |
clone() |
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDays(Integer days)
The number of days that you want to specify for the default retention period.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails |
withDays(Integer days)
The number of days that you want to specify for the default retention period.
|
AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails |
withMode(String mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
|
AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails |
withYears(Integer years)
The number of years that you want to specify for the default retention period.
|
public AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails()
public void setDays(Integer days)
The number of days that you want to specify for the default retention period.
days
- The number of days that you want to specify for the default retention period.public Integer getDays()
The number of days that you want to specify for the default retention period.
public AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails withDays(Integer days)
The number of days that you want to specify for the default retention period.
days
- The number of days that you want to specify for the default retention period.public void setMode(String mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
mode
- The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.public String getMode()
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
public AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails withMode(String mode)
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
mode
- The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.public void setYears(Integer years)
The number of years that you want to specify for the default retention period.
years
- The number of years that you want to specify for the default retention period.public Integer getYears()
The number of years that you want to specify for the default retention period.
public AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails withYears(Integer years)
The number of years that you want to specify for the default retention period.
years
- The number of years that you want to specify for the default retention period.public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketObjectLockConfigurationRuleDefaultRetentionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.