private CopyResult copyInOneChunk ( ) { CopyObjectResult copyObjectResult = s3 . copyObject ( copyObjectRequest ) ; CopyResult copyResult = new CopyResult ( ) ; copyResult . setSourceBucketName ( copyObjectRequest . getSourceBucketName ( ) ) ; copyResult . setSourceKey ( copyObjectRequest . getSourceKey ( ) ) ; copyResult . setDestinationBucketName ( copyObjectRequest . getDestinationBucketName ( ) ) ; copyResult . setDestinationKey ( copyObjectRequest . getDestinationKey ( ) ) ; copyResult . setETag ( copyObjectResult . getETag ( ) ) ; copyResult . setVersionId ( copyObjectResult . getVersionId ( ) ) ; return copyResult ; }
Performs the copy of the Amazon S3 object from source bucket to destination bucket . The Amazon S3 object is copied to destination in one single request .