Class AutoHealRules


  • public final class AutoHealRules
    extends Object
    Rules that can be defined for auto-heal.
    • Constructor Detail

      • AutoHealRules

        public AutoHealRules()
    • Method Detail

      • triggers

        public AutoHealTriggers triggers()
        Get the triggers property: Conditions that describe when to execute the auto-heal actions.
        Returns:
        the triggers value.
      • withTriggers

        public AutoHealRules withTriggers​(AutoHealTriggers triggers)
        Set the triggers property: Conditions that describe when to execute the auto-heal actions.
        Parameters:
        triggers - the triggers value to set.
        Returns:
        the AutoHealRules object itself.
      • actions

        public AutoHealActions actions()
        Get the actions property: Actions to be executed when a rule is triggered.
        Returns:
        the actions value.
      • withActions

        public AutoHealRules withActions​(AutoHealActions actions)
        Set the actions property: Actions to be executed when a rule is triggered.
        Parameters:
        actions - the actions value to set.
        Returns:
        the AutoHealRules object itself.
      • validate

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