Package org.openwms.tms
Class Message.Builder
java.lang.Object
org.openwms.tms.Message.Builder
- Enclosing class:
Message
Message
builder static inner class.-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private LocalDateTime
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns aMessage
built from the parameters previously set.Sets themessageNo
and returns a reference to this Builder so that the methods can be chained together.messageText
(String val) Sets themessageText
and returns a reference to this Builder so that the methods can be chained together.occurred
(LocalDateTime val) Sets theoccurred
and returns a reference to this Builder so that the methods can be chained together.Sets thepKey
and returns a reference to this Builder so that the methods can be chained together.
-
Field Details
-
occurred
-
messageNo
-
messageText
-
pKey
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
occurred
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
-
messageNo
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
-
messageText
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
-
pKey
Sets thepKey
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
val
- thepKey
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
-