-
- All Implemented Interfaces:
public final class CommandResult
-
-
Field Summary
Fields Modifier and Type Field Description private CommandStatusstatusprivate StringcommandIdprivate StringaggregateRootIdprivate Stringresultprivate StringresultType
-
Constructor Summary
Constructors Constructor Description CommandResult()CommandResult(CommandStatus status, String commandId, String aggregateRootId, String result, String resultType)Parameterized constructor.
-
Method Summary
Modifier and Type Method Description final CommandStatusgetStatus()Represents the result status of the command. final UnitsetStatus(CommandStatus status)final StringgetCommandId()Represents the unique identifier of the command. final UnitsetCommandId(String commandId)final StringgetAggregateRootId()Represents the aggregate root id associated with the command. final UnitsetAggregateRootId(String aggregateRootId)final StringgetResult()Represents the command result data. final UnitsetResult(String result)final StringgetResultType()Represents the command result data type. final UnitsetResultType(String resultType)-
-
Constructor Detail
-
CommandResult
CommandResult()
-
CommandResult
CommandResult(CommandStatus status, String commandId, String aggregateRootId, String result, String resultType)
Parameterized constructor.
-
-
Method Detail
-
getStatus
final CommandStatus getStatus()
Represents the result status of the command.
-
setStatus
final Unit setStatus(CommandStatus status)
-
getCommandId
final String getCommandId()
Represents the unique identifier of the command.
-
setCommandId
final Unit setCommandId(String commandId)
-
getAggregateRootId
final String getAggregateRootId()
Represents the aggregate root id associated with the command.
-
setAggregateRootId
final Unit setAggregateRootId(String aggregateRootId)
-
getResultType
final String getResultType()
Represents the command result data type.
-
setResultType
final Unit setResultType(String resultType)
-
-
-
-