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

public final class Condition extends Object
Condition to trigger an alert processing rule.
  • Constructor Details

    • Condition

      public Condition()
  • Method Details

    • field

      public Field field()
      Get the field property: Field for a given condition.
      Returns:
      the field value.
    • withField

      public Condition withField(Field field)
      Set the field property: Field for a given condition.
      Parameters:
      field - the field value to set.
      Returns:
      the Condition object itself.
    • operator

      public Operator operator()
      Get the operator property: Operator for a given condition.
      Returns:
      the operator value.
    • withOperator

      public Condition withOperator(Operator operator)
      Set the operator property: Operator for a given condition.
      Parameters:
      operator - the operator value to set.
      Returns:
      the Condition object itself.
    • values

      public List<String> values()
      Get the values property: List of values to match for a given condition.
      Returns:
      the values value.
    • withValues

      public Condition withValues(List<String> values)
      Set the values property: List of values to match for a given condition.
      Parameters:
      values - the values value to set.
      Returns:
      the Condition object itself.
    • validate

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