MutableCommandBuilder
Mutable implementation of CommandBuilder.
This class provides a concrete implementation of the CommandBuilder interface with mutable properties that can be set through the fluent API methods. All properties have sensible defaults and can be modified through method chaining.
Parameters
the initial command payload object
See also
Properties
the target aggregate instance identifier (optional)
expected version for optimistic concurrency (optional)
timestamp when the command was created
the named aggregate information (optional)
whether owner ID should match aggregate ID
the domain event that triggered this command (optional)
Functions
Sets the target aggregate instance identifier.
Sets the expected aggregate version for optimistic concurrency control.
Sets the command body/payload.
Sets the creation timestamp for the command message.
Customizes the message header using a lambda function.
Sets the message header containing additional metadata.
Sets the unique identifier for the command message.
Enables or disables local-first processing mode.
Sets the named aggregate information for the command target.
Sets the owner identifier of the aggregate.
Sets whether the owner ID should be the same as the aggregate ID.
Sets the request identifier for tracking related commands.
Sets the request ID only if it's not already set.
Sets the tenant identifier for multi-tenancy support.
Sets the tenant ID only if it's not already set.
Converts a CommandBuilder to a CommandMessage.
Sets the upstream domain event that triggered this command.