public S3SetObjectLegalHoldOperation withLegalHold(S3ObjectLockLegalHold legalHold) {
        setLegalHold(legalHold);
        return this;
    }
<p>
Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
</p>

@param legalHold
       Contains the Object Lock legal hold status to be applied to all objects in the Batch Operations job.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/S3SetObjectLegalHoldOperation.java