copyWith
open 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<Any> = this.events, state: S = this.state, scope: Scope = this.scope, causation: Causation? = this.causation, headers: Map<String, String> = this.headers, operator: Operator? = this.operator): StateEvent<S>
This stream with the given fields replaced, a whole stream again: Wow's own copy, left out of the ABI.