Class AutomationRuleTriggeringLogic
java.lang.Object
com.azure.resourcemanager.securityinsights.models.AutomationRuleTriggeringLogic
Describes automation rule triggering logic.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the conditions property: The conditions to evaluate to determine if the automation rule should be triggered on a given object.Get the expirationTimeUtc property: Determines when the automation rule should automatically expire and be disabled.boolean
Get the isEnabled property: Determines whether the automation rule is enabled or disabled.Get the triggersOn property: The triggersOn property.Get the triggersWhen property: The triggersWhen property.void
validate()
Validates the instance.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.withExpirationTimeUtc
(OffsetDateTime expirationTimeUtc) Set the expirationTimeUtc property: Determines when the automation rule should automatically expire and be disabled.withIsEnabled
(boolean isEnabled) Set the isEnabled property: Determines whether the automation rule is enabled or disabled.withTriggersOn
(TriggersOn triggersOn) Set the triggersOn property: The triggersOn property.withTriggersWhen
(TriggersWhen triggersWhen) Set the triggersWhen property: The triggersWhen property.
-
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
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
Get the expirationTimeUtc property: Determines when the automation rule should automatically expire and be disabled.- Returns:
- the expirationTimeUtc value.
-
withExpirationTimeUtc
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
Get the triggersOn property: The triggersOn property.- Returns:
- the triggersOn value.
-
withTriggersOn
Set the triggersOn property: The triggersOn property.- Parameters:
triggersOn
- the triggersOn value to set.- Returns:
- the AutomationRuleTriggeringLogic object itself.
-
triggersWhen
Get the triggersWhen property: The triggersWhen property.- Returns:
- the triggersWhen value.
-
withTriggersWhen
Set the triggersWhen property: The triggersWhen property.- Parameters:
triggersWhen
- the triggersWhen value to set.- Returns:
- the AutomationRuleTriggeringLogic object itself.
-
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
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.
-