Class AutomationRuleTriggeringLogic

java.lang.Object
com.azure.resourcemanager.securityinsights.models.AutomationRuleTriggeringLogic

public final class AutomationRuleTriggeringLogic extends Object
Describes automation rule triggering logic.
  • Constructor Details

    • AutomationRuleTriggeringLogic

      public AutomationRuleTriggeringLogic()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Get the isEnabled property: Determines whether the automation rule is enabled or disabled.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public AutomationRuleTriggeringLogic withIsEnabled(boolean isEnabled)
      Set the isEnabled property: Determines whether the automation rule is enabled or disabled.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the AutomationRuleTriggeringLogic object itself.
    • expirationTimeUtc

      public OffsetDateTime expirationTimeUtc()
      Get the expirationTimeUtc property: Determines when the automation rule should automatically expire and be disabled.
      Returns:
      the expirationTimeUtc value.
    • withExpirationTimeUtc

      public AutomationRuleTriggeringLogic withExpirationTimeUtc(OffsetDateTime expirationTimeUtc)
      Set the expirationTimeUtc property: Determines when the automation rule should automatically expire and be disabled.
      Parameters:
      expirationTimeUtc - the expirationTimeUtc value to set.
      Returns:
      the AutomationRuleTriggeringLogic object itself.
    • triggersOn

      public TriggersOn triggersOn()
      Get the triggersOn property: The triggersOn property.
      Returns:
      the triggersOn value.
    • withTriggersOn

      public AutomationRuleTriggeringLogic withTriggersOn(TriggersOn triggersOn)
      Set the triggersOn property: The triggersOn property.
      Parameters:
      triggersOn - the triggersOn value to set.
      Returns:
      the AutomationRuleTriggeringLogic object itself.
    • triggersWhen

      public TriggersWhen triggersWhen()
      Get the triggersWhen property: The triggersWhen property.
      Returns:
      the triggersWhen value.
    • withTriggersWhen

      public AutomationRuleTriggeringLogic withTriggersWhen(TriggersWhen triggersWhen)
      Set the triggersWhen property: The triggersWhen property.
      Parameters:
      triggersWhen - the triggersWhen value to set.
      Returns:
      the AutomationRuleTriggeringLogic object itself.
    • conditions

      public List<AutomationRuleCondition> conditions()
      Get the conditions property: The conditions to evaluate to determine if the automation rule should be triggered on a given object.
      Returns:
      the conditions value.
    • withConditions

      public AutomationRuleTriggeringLogic withConditions(List<AutomationRuleCondition> conditions)
      Set the conditions property: The conditions to evaluate to determine if the automation rule should be triggered on a given object.
      Parameters:
      conditions - the conditions value to set.
      Returns:
      the AutomationRuleTriggeringLogic object itself.
    • validate

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