Class Message.Builder

java.lang.Object
org.openwms.wms.movements.Message.Builder
Enclosing class:
Message

public static final class Message.Builder extends Object
Message builder static inner class.
  • Field Details

    • occurred

      private Date occurred
    • messageNo

      private String messageNo
    • messageText

      private String messageText
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withOccurred

      public Message.Builder withOccurred(Date val)
      Sets the occurred and returns a reference to this Builder so that the methods can be chained together.
      Parameters:
      val - the occurred to set
      Returns:
      a reference to this Builder
    • withMessageNo

      public Message.Builder withMessageNo(String val)
      Sets the messageNo and returns a reference to this Builder so that the methods can be chained together.
      Parameters:
      val - the messageNo to set
      Returns:
      a reference to this Builder
    • withMessageText

      public Message.Builder withMessageText(String val)
      Sets the messageText and returns a reference to this Builder so that the methods can be chained together.
      Parameters:
      val - the messageText to set
      Returns:
      a reference to this Builder
    • build

      public Message build()
      Returns a Message built from the parameters previously set.
      Returns:
      a Message built with parameters of this Message.Builder