public GetObjectRequest withVersionId(String versionId) {
        setVersionId(versionId);
        return this;
    }
<p>
Sets the optional version ID specifying which version of the object to
download and returns this object, enabling additional method calls to be
chained together. If not specified, the most recent version will be
downloaded.
</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
           to download.

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

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