public String getVersionId() {
        return versionId;
    }
Gets the optional version ID of the object version whose metadata is
being retrieved. If not specified, the latest version will be used.

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

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