Class SendMessage


  • public final class SendMessage
    extends Object
    Represents message sent to a UserSession.
    • Constructor Detail

      • SendMessage

        public SendMessage()
    • Method Detail

      • messageTitle

        public String messageTitle()
        Get the messageTitle property: Title of message.
        Returns:
        the messageTitle value.
      • withMessageTitle

        public SendMessage withMessageTitle​(String messageTitle)
        Set the messageTitle property: Title of message.
        Parameters:
        messageTitle - the messageTitle value to set.
        Returns:
        the SendMessage object itself.
      • messageBody

        public String messageBody()
        Get the messageBody property: Body of message.
        Returns:
        the messageBody value.
      • withMessageBody

        public SendMessage withMessageBody​(String messageBody)
        Set the messageBody property: Body of message.
        Parameters:
        messageBody - the messageBody value to set.
        Returns:
        the SendMessage object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.