copy

fun copy(type: String = this.type, status: Int? = this.status, title: String? = this.title, detail: String? = this.detail, instance: String? = this.instance, extensions: Map<String, ProblemValue> = this.extensions): Problem(source)

Returns a problem with the supplied members replaced, preserving data-class-style ergonomics.