setTag

fun <T : U, U : Taggable<U>, X : Any> T.setTag(key: String, value: X): T

Returns a new instance, otherwise equivalent to this one, whose only tag is key holding value (any other previously attached tag with a different name is preserved, but one named key is overwritten).