copyWith

fun copyWith(ref: AggregateRef = this.ref, version: Int = this.version, commandId: String = this.commandId, requestId: String = this.requestId, commandType: String = this.commandType, commitTime: Long = this.commitTime, events: List<StateEventPayload> = this.events, state: PublishedState? = this.state, scope: Scope = this.scope, deleted: Boolean = this.deleted, access: Map<String, Any?>? = this.access, causation: Causation? = this.causation, headers: Map<String, String> = this.headers, operator: Operator? = this.operator, transport: Transport? = this.transport, imported: Boolean = this.imported, accessVersion: Int? = this.accessVersion): StateEventRecord

This StateEventRecord with the given fields replaced: Wow's own copy, left out of the ABI.