Class GenericNotification

java.lang.Object
com.caplin.motif.config.definitions.common.GenericNotification

@Generated("org.openapitools.codegen.languages.SpringCodegen") public class GenericNotification extends Object
GenericNotification
  • Constructor Details

  • Method Details

    • type

    • getType

      @NotNull public @NotNull GenericNotification.TypeEnum getType()
      Each of the notification types. The Front End will represent notifications based on their types (eg. Success will show a green Status and a tick icon).
      Returns:
      type
    • setType

      public void setType(GenericNotification.TypeEnum type)
    • status

      public GenericNotification status(String status)
    • getStatus

      public String getStatus()
      Optional token describing the notification status, it is used to display the status in the front end, and it will be colored according to the type property. eg. notifications.status.cancelled will represent the CANCELLED status.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • dateTime

      public GenericNotification dateTime(String dateTime)
    • getDateTime

      @NotNull public @NotNull String getDateTime()
      An ISO-8601 date-time (`YYYY-MM-DD[T]HH:mm:ss`).
      Returns:
      dateTime
    • setDateTime

      public void setDateTime(String dateTime)
    • category

      public GenericNotification category(String category)
    • getCategory

      public String getCategory()
      Optional token describing the notification category, it is used to display the category in the Front End notification. eg. notifications.category.order will represent the ORDER category.
      Returns:
      category
    • setCategory

      public void setCategory(String category)
    • messageHeader

      public GenericNotification messageHeader(NotificationToken messageHeader)
    • getMessageHeader

      public NotificationToken getMessageHeader()
      Get messageHeader
      Returns:
      messageHeader
    • setMessageHeader

      public void setMessageHeader(NotificationToken messageHeader)
    • message

      public GenericNotification message(NotificationToken message)
    • getMessage

      @NotNull public @NotNull NotificationToken getMessage()
      Get message
      Returns:
      message
    • setMessage

      public void setMessage(NotificationToken message)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object