Class NotificationContractProperties


  • public final class NotificationContractProperties
    extends Object
    Notification Contract properties.
    • Constructor Detail

      • NotificationContractProperties

        public NotificationContractProperties()
    • Method Detail

      • title

        public String title()
        Get the title property: Title of the Notification.
        Returns:
        the title value.
      • withTitle

        public NotificationContractProperties withTitle​(String title)
        Set the title property: Title of the Notification.
        Parameters:
        title - the title value to set.
        Returns:
        the NotificationContractProperties object itself.
      • description

        public String description()
        Get the description property: Description of the Notification.
        Returns:
        the description value.
      • withDescription

        public NotificationContractProperties withDescription​(String description)
        Set the description property: Description of the Notification.
        Parameters:
        description - the description value to set.
        Returns:
        the NotificationContractProperties object itself.
      • recipients

        public RecipientsContractProperties recipients()
        Get the recipients property: Recipient Parameter values.
        Returns:
        the recipients value.
      • validate

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