Class RecipientsContractProperties


  • public final class RecipientsContractProperties
    extends Object
    Notification Parameter contract.
    • Constructor Detail

      • RecipientsContractProperties

        public RecipientsContractProperties()
    • Method Detail

      • emails

        public List<String> emails()
        Get the emails property: List of Emails subscribed for the notification.
        Returns:
        the emails value.
      • withEmails

        public RecipientsContractProperties withEmails​(List<String> emails)
        Set the emails property: List of Emails subscribed for the notification.
        Parameters:
        emails - the emails value to set.
        Returns:
        the RecipientsContractProperties object itself.
      • users

        public List<String> users()
        Get the users property: List of Users subscribed for the notification.
        Returns:
        the users value.
      • withUsers

        public RecipientsContractProperties withUsers​(List<String> users)
        Set the users property: List of Users subscribed for the notification.
        Parameters:
        users - the users value to set.
        Returns:
        the RecipientsContractProperties object itself.
      • validate

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