Class AutomationTriggeringRule

java.lang.Object
com.azure.resourcemanager.security.models.AutomationTriggeringRule

public final class AutomationTriggeringRule extends Object
A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set.
  • Constructor Details

    • AutomationTriggeringRule

      public AutomationTriggeringRule()
  • Method Details

    • propertyJPath

      public String propertyJPath()
      Get the propertyJPath property: The JPath of the entity model property that should be checked.
      Returns:
      the propertyJPath value.
    • withPropertyJPath

      public AutomationTriggeringRule withPropertyJPath(String propertyJPath)
      Set the propertyJPath property: The JPath of the entity model property that should be checked.
      Parameters:
      propertyJPath - the propertyJPath value to set.
      Returns:
      the AutomationTriggeringRule object itself.
    • propertyType

      public PropertyType propertyType()
      Get the propertyType property: The data type of the compared operands (string, integer, floating point number or a boolean [true/false]].
      Returns:
      the propertyType value.
    • withPropertyType

      public AutomationTriggeringRule withPropertyType(PropertyType propertyType)
      Set the propertyType property: The data type of the compared operands (string, integer, floating point number or a boolean [true/false]].
      Parameters:
      propertyType - the propertyType value to set.
      Returns:
      the AutomationTriggeringRule object itself.
    • expectedValue

      public String expectedValue()
      Get the expectedValue property: The expected value.
      Returns:
      the expectedValue value.
    • withExpectedValue

      public AutomationTriggeringRule withExpectedValue(String expectedValue)
      Set the expectedValue property: The expected value.
      Parameters:
      expectedValue - the expectedValue value to set.
      Returns:
      the AutomationTriggeringRule object itself.
    • operator

      public Operator operator()
      Get the operator property: A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
      Returns:
      the operator value.
    • withOperator

      public AutomationTriggeringRule withOperator(Operator operator)
      Set the operator property: A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
      Parameters:
      operator - the operator value to set.
      Returns:
      the AutomationTriggeringRule object itself.
    • validate

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