private void abortMultipartCopy() {
        try {
            AbortMultipartUploadRequest abortRequest = new AbortMultipartUploadRequest(
                    copyObjectRequest.getDestinationBucketName(),
                    copyObjectRequest.getDestinationKey(), multipartUploadId)
                    .withRequesterPays(copyObjectRequest.isRequesterPays())
                    .withRequestCredentialsProvider(copyObjectRequest.getRequestCredentialsProvider());
            s3.abortMultipartUpload(abortRequest);
        } catch (Exception e) {
            log.info(
                    "Unable to abort multipart upload, you may need to manually remove uploaded parts: "
                            + e.getMessage(), e);
        }
    }
Initiates a multipart upload and returns the upload id
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java