public S3CopyObjectOperation withObjectLockMode(String objectLockMode) {
        setObjectLockMode(objectLockMode);
        return this;
    }
<p>
The retention mode to be applied to all objects in the Batch Operations job.
</p>
<note>
<p>
This functionality is not supported by directory buckets.
</p>
</note>

@param objectLockMode
       The retention mode to be applied to all objects in the Batch Operations job.</p> <note>
       <p>
       This functionality is not supported by directory buckets.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see S3ObjectLockMode
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/S3CopyObjectOperation.java