Class AlertProcessingRuleProperties
java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.AlertProcessingRuleProperties
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()
Get the actions property: Actions to be applied.Get the conditions property: Conditions on which alerts will be filtered.Get the description property: Description of alert processing rule.enabled()
Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.schedule()
Get the schedule property: Scheduling for alert processing rule.scopes()
Get the scopes property: Scopes on which alert processing rule will apply.void
validate()
Validates the instance.withActions
(List<Action> actions) Set the actions property: Actions to be applied.withConditions
(List<Condition> conditions) Set the conditions property: Conditions on which alerts will be filtered.withDescription
(String description) Set the description property: Description of alert processing rule.withEnabled
(Boolean enabled) Set the enabled property: Indicates if the given alert processing rule is enabled or disabled.withSchedule
(Schedule schedule) Set the schedule property: Scheduling for alert processing rule.withScopes
(List<String> scopes) Set the scopes property: Scopes on which alert processing rule will apply.
-
Constructor Details
-
AlertProcessingRuleProperties
public AlertProcessingRuleProperties()
-
-
Method Details
-
scopes
Get the scopes property: Scopes on which alert processing rule will apply.- Returns:
- the scopes value.
-
withScopes
Set the scopes property: Scopes on which alert processing rule will apply.- Parameters:
scopes
- the scopes value to set.- Returns:
- the AlertProcessingRuleProperties object itself.
-
conditions
Get the conditions property: Conditions on which alerts will be filtered.- Returns:
- the conditions value.
-
withConditions
Set the conditions property: Conditions on which alerts will be filtered.- Parameters:
conditions
- the conditions value to set.- Returns:
- the AlertProcessingRuleProperties object itself.
-
schedule
Get the schedule property: Scheduling for alert processing rule.- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: Scheduling for alert processing rule.- Parameters:
schedule
- the schedule value to set.- Returns:
- the AlertProcessingRuleProperties object itself.
-
actions
Get the actions property: Actions to be applied.- Returns:
- the actions value.
-
withActions
Set the actions property: Actions to be applied.- Parameters:
actions
- the actions value to set.- Returns:
- the AlertProcessingRuleProperties object itself.
-
description
Get the description property: Description of alert processing rule.- Returns:
- the description value.
-
withDescription
Set the description property: Description of alert processing rule.- Parameters:
description
- the description value to set.- Returns:
- the AlertProcessingRuleProperties object itself.
-
enabled
Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Indicates if the given alert processing rule is enabled or disabled.- Parameters:
enabled
- the enabled value to set.- Returns:
- the AlertProcessingRuleProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-