@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3SetObjectLegalHoldOperation extends Object implements Serializable, Cloneable
Contains the configuration for an S3 Object Lock legal hold operation that an S3 Batch Operations job passes to every
object to the underlying PutObjectLegalHold
API operation. For more information, see Using S3 Object Lock legal hold with
S3 Batch Operations in the Amazon S3 User Guide.
This functionality is not supported by directory buckets.
Constructor and Description |
---|
S3SetObjectLegalHoldOperation() |
Modifier and Type | Method and Description |
---|---|
S3SetObjectLegalHoldOperation |
clone() |
boolean |
equals(Object obj) |
S3ObjectLockLegalHold |
getLegalHold()
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
|
int |
hashCode() |
void |
setLegalHold(S3ObjectLockLegalHold legalHold)
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
|
String |
toString()
Returns a string representation of this object.
|
S3SetObjectLegalHoldOperation |
withLegalHold(S3ObjectLockLegalHold legalHold)
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
|
public void setLegalHold(S3ObjectLockLegalHold legalHold)
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
legalHold
- Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.public S3ObjectLockLegalHold getLegalHold()
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
public S3SetObjectLegalHoldOperation withLegalHold(S3ObjectLockLegalHold legalHold)
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
legalHold
- Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.public String toString()
toString
in class Object
Object.toString()
public S3SetObjectLegalHoldOperation clone()