replaceTags

abstract fun replaceTags(tags: Map<String, Any>): Self

Returns a new instance, otherwise equivalent to this one, whose tags are entirely replaced by tags (i.e. this is not a merge: any tag not present in tags is dropped).