// You can move an object to a new name in the same bucket. This is essentially a rename operation.
s3Service.moveObject("test-bucket", "HelloWorld.txt", "test-bucket", new S3Object("NewName.txt"), false);
// To make renaming easier, JetS3t has a shortcut method especially for this purpose.
s3Service.renameObject("test-bucket", "HelloWorld.txt", targetObject);
/*
* Deleting objects and buckets
*/