@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3SetObjectLegalHoldOperation extends Object implements Serializable, Cloneable
Contains the configuration parameters for a Set Object Legal Hold operation. Amazon S3 Batch Operations passes each value through to the underlying PUT Object Legal Hold API. For more information about the parameters for this operation, see PUT Object Legal Hold.
Constructor and Description |
---|
S3SetObjectLegalHoldOperation() |
Modifier and Type | Method and Description |
---|---|
S3SetObjectLegalHoldOperation |
clone() |
boolean |
equals(Object obj) |
S3ObjectLockLegalHold |
getLegalHold()
The Legal Hold contains the status to be applied to all objects in the Batch Operations job.
|
int |
hashCode() |
void |
setLegalHold(S3ObjectLockLegalHold legalHold)
The Legal Hold contains the 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)
The Legal Hold contains the status to be applied to all objects in the Batch Operations job.
|
public void setLegalHold(S3ObjectLockLegalHold legalHold)
The Legal Hold contains the status to be applied to all objects in the Batch Operations job.
legalHold
- The Legal Hold contains the status to be applied to all objects in the Batch Operations job.public S3ObjectLockLegalHold getLegalHold()
The Legal Hold contains the status to be applied to all objects in the Batch Operations job.
public S3SetObjectLegalHoldOperation withLegalHold(S3ObjectLockLegalHold legalHold)
The Legal Hold contains the status to be applied to all objects in the Batch Operations job.
legalHold
- The Legal Hold contains the status to be applied to all objects in the Batch Operations job.public String toString()
toString
in class Object
Object.toString()
public S3SetObjectLegalHoldOperation clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.