@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Retention extends Object implements Serializable, Cloneable
Constructor and Description |
---|
S3Retention() |
Modifier and Type | Method and Description |
---|---|
S3Retention |
clone() |
boolean |
equals(Object obj) |
String |
getMode()
The Retention mode to be applied to all objects in the Batch Operations job.
|
Date |
getRetainUntilDate()
The date when the applied Object Retention will expire on all objects in the Batch Operations job.
|
int |
hashCode() |
void |
setMode(String mode)
The Retention mode to be applied to all objects in the Batch Operations job.
|
void |
setRetainUntilDate(Date retainUntilDate)
The date when the applied Object Retention will expire on all objects in the Batch Operations job.
|
String |
toString()
Returns a string representation of this object.
|
S3Retention |
withMode(S3ObjectLockRetentionMode mode)
The Retention mode to be applied to all objects in the Batch Operations job.
|
S3Retention |
withMode(String mode)
The Retention mode to be applied to all objects in the Batch Operations job.
|
S3Retention |
withRetainUntilDate(Date retainUntilDate)
The date when the applied Object Retention will expire on all objects in the Batch Operations job.
|
public void setRetainUntilDate(Date retainUntilDate)
The date when the applied Object Retention will expire on all objects in the Batch Operations job.
retainUntilDate
- The date when the applied Object Retention will expire on all objects in the Batch Operations job.public Date getRetainUntilDate()
The date when the applied Object Retention will expire on all objects in the Batch Operations job.
public S3Retention withRetainUntilDate(Date retainUntilDate)
The date when the applied Object Retention will expire on all objects in the Batch Operations job.
retainUntilDate
- The date when the applied Object Retention will expire on all objects in the Batch Operations job.public void setMode(String mode)
The Retention mode to be applied to all objects in the Batch Operations job.
mode
- The Retention mode to be applied to all objects in the Batch Operations job.S3ObjectLockRetentionMode
public String getMode()
The Retention mode to be applied to all objects in the Batch Operations job.
S3ObjectLockRetentionMode
public S3Retention withMode(String mode)
The Retention mode to be applied to all objects in the Batch Operations job.
mode
- The Retention mode to be applied to all objects in the Batch Operations job.S3ObjectLockRetentionMode
public S3Retention withMode(S3ObjectLockRetentionMode mode)
The Retention mode to be applied to all objects in the Batch Operations job.
mode
- The Retention mode to be applied to all objects in the Batch Operations job.S3ObjectLockRetentionMode
public String toString()
toString
in class Object
Object.toString()
public S3Retention clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.