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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aMessagebuilt from the parameters previously set.withMessageNo(String val) Sets themessageNoand returns a reference to this Builder so that the methods can be chained together.withMessageText(String val) Sets themessageTextand returns a reference to this Builder so that the methods can be chained together.withOccurred(Date val) Sets theoccurredand 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 theoccurredand returns a reference to this Builder so that the methods can be chained together.- Parameters:
val- theoccurredto set- Returns:
- a reference to this Builder
-
withMessageNo
Sets themessageNoand returns a reference to this Builder so that the methods can be chained together.- Parameters:
val- themessageNoto set- Returns:
- a reference to this Builder
-
withMessageText
Sets themessageTextand returns a reference to this Builder so that the methods can be chained together.- Parameters:
val- themessageTextto set- Returns:
- a reference to this Builder
-
build
Returns aMessagebuilt from the parameters previously set.- Returns:
- a
Messagebuilt with parameters of thisMessage.Builder
-