public void setVersionId(String versionId) {
        this.versionId = versionId;
    }
Sets the optional version ID of the object version whose metadata is
being retrieved. If not specified, the latest version will be used.

@param versionId
           The optional version ID of the object version whose metadata
           is being retrieved. If not specified, the latest version will
           be used.

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