private UploadResult uploadInOneChunk ( ) { PutObjectResult putObjectResult = s3 . putObject ( origReq ) ; UploadResult uploadResult = new UploadResult ( ) ; uploadResult . setBucketName ( origReq . getBucketName ( ) ) ; uploadResult . setKey ( origReq . getKey ( ) ) ; uploadResult . setETag ( putObjectResult . getETag ( ) ) ; uploadResult . setVersionId ( putObjectResult . getVersionId ( ) ) ; return uploadResult ; }
Uploads the given request in a single chunk and returns the result .