public GetObjectAclRequest withVersionId(String versionId) {
        setVersionId(versionId);
        return this;
    }
<p>
Sets the optional version ID specifying which version of the object whose ACL to be
retrieved and returns this {@link GetObjectAclRequest}, enabling additional method calls to be
chained together. If not specified, the most recent version's ACL will be
retrieved.
</p>
<p>
Objects created before versioning was enabled or when versioning is
suspended will be given the default or <code>null</code> version ID (see
{@link Constants#NULL_VERSION_ID}). Note that the
<code>null</code> version ID is a valid version ID and is not the
same as not having a version ID.
</p>
<p>
For more information about enabling versioning for a bucket, see
{@link AmazonS3#setBucketVersioningConfiguration(SetBucketVersioningConfigurationRequest)}.
</p>

@param versionId
           The optional version ID specifying which version of the object whose ACL is
           to be retrieved.

@return The updated request object, enabling additional method calls to be
chained together.

@see GetObjectAclRequest#getVersionId()
@see GetObjectAclRequest#setVersionId(String)
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/GetObjectAclRequest.java