'Instantiate a BucketStorageUri from the current BucketStorageUri,
but replacing the object_name.
@type new_name: string
@param new_name: new object name'

def clone_replace_name(self, new_name):

    self._check_bucket_uri('clone_replace_name')
    return BucketStorageUri(self.scheme, bucket_name=self.bucket_name, object_name=new_name, debug=self.debug, suppress_consec_slashes=self.suppress_consec_slashes)
