Class ExpressionEvaluationDetails

java.lang.Object
com.azure.resourcemanager.policyinsights.models.ExpressionEvaluationDetails

public final class ExpressionEvaluationDetails extends Object
Evaluation details of policy language expressions.
  • Constructor Details

    • ExpressionEvaluationDetails

      public ExpressionEvaluationDetails()
      Creates an instance of ExpressionEvaluationDetails class.
  • Method Details

    • result

      public String result()
      Get the result property: Evaluation result.
      Returns:
      the result value.
    • withResult

      public ExpressionEvaluationDetails withResult(String result)
      Set the result property: Evaluation result.
      Parameters:
      result - the result value to set.
      Returns:
      the ExpressionEvaluationDetails object itself.
    • expression

      public String expression()
      Get the expression property: Expression evaluated.
      Returns:
      the expression value.
    • withExpression

      public ExpressionEvaluationDetails withExpression(String expression)
      Set the expression property: Expression evaluated.
      Parameters:
      expression - the expression value to set.
      Returns:
      the ExpressionEvaluationDetails object itself.
    • expressionKind

      public String expressionKind()
      Get the expressionKind property: The kind of expression that was evaluated.
      Returns:
      the expressionKind value.
    • path

      public String path()
      Get the path property: Property path if the expression is a field or an alias.
      Returns:
      the path value.
    • withPath

      public ExpressionEvaluationDetails withPath(String path)
      Set the path property: Property path if the expression is a field or an alias.
      Parameters:
      path - the path value to set.
      Returns:
      the ExpressionEvaluationDetails object itself.
    • expressionValue

      public Object expressionValue()
      Get the expressionValue property: Value of the expression.
      Returns:
      the expressionValue value.
    • withExpressionValue

      public ExpressionEvaluationDetails withExpressionValue(Object expressionValue)
      Set the expressionValue property: Value of the expression.
      Parameters:
      expressionValue - the expressionValue value to set.
      Returns:
      the ExpressionEvaluationDetails object itself.
    • targetValue

      public Object targetValue()
      Get the targetValue property: Target value to be compared with the expression value.
      Returns:
      the targetValue value.
    • withTargetValue

      public ExpressionEvaluationDetails withTargetValue(Object targetValue)
      Set the targetValue property: Target value to be compared with the expression value.
      Parameters:
      targetValue - the targetValue value to set.
      Returns:
      the ExpressionEvaluationDetails object itself.
    • operator

      public String operator()
      Get the operator property: Operator to compare the expression value and the target value.
      Returns:
      the operator value.
    • withOperator

      public ExpressionEvaluationDetails withOperator(String operator)
      Set the operator property: Operator to compare the expression value and the target value.
      Parameters:
      operator - the operator value to set.
      Returns:
      the ExpressionEvaluationDetails object itself.
    • validate

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