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
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate LocalDateTimeprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aMessagebuilt from the parameters previously set.Sets themessageNoand returns a reference to this Builder so that the methods can be chained together.messageText(String val) Sets themessageTextand returns a reference to this Builder so that the methods can be chained together.occurred(LocalDateTime val) Sets theoccurredand returns a reference to this Builder so that the methods can be chained together.Sets thepKeyand 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 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
-
messageNo
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
-
messageText
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
-
pKey
Sets thepKeyand returns a reference to this Builder so that the methods can be chained together.- Parameters:
val- thepKeyto set- Returns:
- a reference to this Builder
-
build
Returns aMessagebuilt from the parameters previously set.- Returns:
- a
Messagebuilt with parameters of thisMessage.Builder
-