Class MessageCommand
java.lang.Object
org.openwms.common.transport.api.commands.MessageCommand
- All Implemented Interfaces:
Serializable
,Command<MessageCommand.Type>
A MessageCommand is used to attach Messages.
- Author:
- Heiko Scherrer
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private Date
private @NotBlank String
private String
private @NotNull MessageCommand.Type
-
Constructor Summary
ModifierConstructorDescriptionprivate
MessageCommand
(MessageCommand.Builder builder) protected
MessageCommand
(MessageCommand.Type type, String messageText) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
static MessageCommand.Builder
void
setMessageNumber
(String messageNumber) void
setMessageOccurred
(Date messageOccurred) void
setMessageText
(String messageText) void
setTransportUnitId
(String transportUnitId) void
setType
(MessageCommand.Type type)
-
Field Details
-
type
-
transportUnitId
-
messageText
-
messageNumber
-
messageOccurred
-
-
Constructor Details
-
MessageCommand
@ConstructorProperties({"type","messageText"}) protected MessageCommand(MessageCommand.Type type, String messageText) -
MessageCommand
-
-
Method Details
-
newBuilder
-
getType
- Specified by:
getType
in interfaceCommand<MessageCommand.Type>
-
setType
-
getTransportUnitId
-
setTransportUnitId
-
getMessageText
-
setMessageText
-
getMessageNumber
-
setMessageNumber
-
getMessageOccurred
-
setMessageOccurred
-