code: public static GetObjectMetadataRequest createGetObjectMetadataRequestFrom(GetObjectRequest getObjectRequest) {
          return new GetObjectMetadataRequest(getObjectRequest.getBucketName(), getObjectRequest.getKey())
                  .withVersionId(getObjectRequest.getVersionId())
                  .withRequesterPays(getObjectRequest.isRequesterPays())
                  .withSSECustomerKey(getObjectRequest.getSSECustomerKey())
                  .withPartNumber(getObjectRequest.getPartNumber());
      }
docs: Creates a #GetObjectMetadataRequest by copying values for common members
  from the input #GetObjectRequest.