public void setLegalHold(S3ObjectLockLegalHold legalHold) {
        this.legalHold = legalHold;
    }
<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.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/S3SetObjectLegalHoldOperation.java