copy

fun copy(scopeName: String = this.scopeName, name: String = this.name, maxExpiry: Duration? = this.maxExpiry, history: Boolean? = this.history): CollectionSpec
fun copy(scopeName: String = this.scopeName, name: String = this.name, maxExpiry: Duration? = this.maxExpiry): CollectionSpec