Package org.openwms.wms.movements
Class Message.Builder
java.lang.Object
org.openwms.wms.movements.Message.Builder
- Enclosing class:
Message
Message
builder static inner class.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns aMessage
built from the parameters previously set.withMessageNo
(String val) Sets themessageNo
and returns a reference to this Builder so that the methods can be chained together.withMessageText
(String val) Sets themessageText
and returns a reference to this Builder so that the methods can be chained together.withOccurred
(Date val) Sets theoccurred
and returns a reference to this Builder so that the methods can be chained together.
-
Field Details
-
occurred
-
messageNo
-
messageText
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withOccurred
Sets theoccurred
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
val
- theoccurred
to set- Returns:
- a reference to this Builder
-
withMessageNo
Sets themessageNo
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
val
- themessageNo
to set- Returns:
- a reference to this Builder
-
withMessageText
Sets themessageText
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
val
- themessageText
to set- Returns:
- a reference to this Builder
-
build
Returns aMessage
built from the parameters previously set.- Returns:
- a
Message
built with parameters of thisMessage.Builder
-