Class AlertProcessingRuleProperties

java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.AlertProcessingRuleProperties

public final class AlertProcessingRuleProperties extends Object
Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.
  • Constructor Details

    • AlertProcessingRuleProperties

      public AlertProcessingRuleProperties()
  • Method Details

    • scopes

      public List<String> scopes()
      Get the scopes property: Scopes on which alert processing rule will apply.
      Returns:
      the scopes value.
    • withScopes

      public AlertProcessingRuleProperties withScopes(List<String> scopes)
      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

      public List<Condition> conditions()
      Get the conditions property: Conditions on which alerts will be filtered.
      Returns:
      the conditions value.
    • withConditions

      public AlertProcessingRuleProperties withConditions(List<Condition> conditions)
      Set the conditions property: Conditions on which alerts will be filtered.
      Parameters:
      conditions - the conditions value to set.
      Returns:
      the AlertProcessingRuleProperties object itself.
    • schedule

      public Schedule schedule()
      Get the schedule property: Scheduling for alert processing rule.
      Returns:
      the schedule value.
    • withSchedule

      public AlertProcessingRuleProperties withSchedule(Schedule schedule)
      Set the schedule property: Scheduling for alert processing rule.
      Parameters:
      schedule - the schedule value to set.
      Returns:
      the AlertProcessingRuleProperties object itself.
    • actions

      public List<Action> actions()
      Get the actions property: Actions to be applied.
      Returns:
      the actions value.
    • withActions

      public AlertProcessingRuleProperties withActions(List<Action> actions)
      Set the actions property: Actions to be applied.
      Parameters:
      actions - the actions value to set.
      Returns:
      the AlertProcessingRuleProperties object itself.
    • description

      public String description()
      Get the description property: Description of alert processing rule.
      Returns:
      the description value.
    • withDescription

      public AlertProcessingRuleProperties withDescription(String description)
      Set the description property: Description of alert processing rule.
      Parameters:
      description - the description value to set.
      Returns:
      the AlertProcessingRuleProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: Indicates if the given alert processing rule is enabled or disabled.
      Returns:
      the enabled value.
    • withEnabled

      public AlertProcessingRuleProperties withEnabled(Boolean enabled)
      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.