Class NotificationPreference


  • public final class NotificationPreference
    extends Object
    Notification preference for a job stage.
    • Constructor Detail

      • NotificationPreference

        public NotificationPreference()
    • Method Detail

      • stageName

        public NotificationStageName stageName()
        Get the stageName property: Name of the stage.
        Returns:
        the stageName value.
      • withStageName

        public NotificationPreference withStageName​(NotificationStageName stageName)
        Set the stageName property: Name of the stage.
        Parameters:
        stageName - the stageName value to set.
        Returns:
        the NotificationPreference object itself.
      • sendNotification

        public boolean sendNotification()
        Get the sendNotification property: Notification is required or not.
        Returns:
        the sendNotification value.
      • withSendNotification

        public NotificationPreference withSendNotification​(boolean sendNotification)
        Set the sendNotification property: Notification is required or not.
        Parameters:
        sendNotification - the sendNotification value to set.
        Returns:
        the NotificationPreference object itself.
      • validate

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