Builder

class Builder<C : Any>

Builds a CommandRequest, one setter per field; build checks it as the constructor does. It is also the receiver of the block of toCommandRequest and of the entries that take a command, with the same names.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun expectedVersion(expectedVersion: Int?): CommandRequest.Builder<C>
Link copied to clipboard
Link copied to clipboard

The tenant and scope the request acts in, replacing both: a TargetScope that names no tenant names none.

Link copied to clipboard

The tenant the request acts in, in one call: targetScope naming targetTenant and keeping the scope it named (the caller's own when it named none); null names no tenant.

Link copied to clipboard
Link copied to clipboard

To the aggregate ref names: its type, its id when assigned, and its tenant as the target tenant (targetTenant), keeping the scope (the caller's own unless targetScope named one), as CommandRequest.to sends.

Link copied to clipboard
Link copied to clipboard