Class ExpressionEvaluationDetails
java.lang.Object
com.azure.resourcemanager.policyinsights.models.ExpressionEvaluationDetails
Evaluation details of policy language expressions.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ExpressionEvaluationDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the expression property: Expression evaluated.Get the expressionKind property: The kind of expression that was evaluated.Get the expressionValue property: Value of the expression.operator()
Get the operator property: Operator to compare the expression value and the target value.path()
Get the path property: Property path if the expression is a field or an alias.result()
Get the result property: Evaluation result.Get the targetValue property: Target value to be compared with the expression value.void
validate()
Validates the instance.withExpression
(String expression) Set the expression property: Expression evaluated.withExpressionValue
(Object expressionValue) Set the expressionValue property: Value of the expression.withOperator
(String operator) Set the operator property: Operator to compare the expression value and the target value.Set the path property: Property path if the expression is a field or an alias.withResult
(String result) Set the result property: Evaluation result.withTargetValue
(Object targetValue) Set the targetValue property: Target value to be compared with the expression value.
-
Constructor Details
-
ExpressionEvaluationDetails
public ExpressionEvaluationDetails()Creates an instance of ExpressionEvaluationDetails class.
-
-
Method Details
-
result
Get the result property: Evaluation result.- Returns:
- the result value.
-
withResult
Set the result property: Evaluation result.- Parameters:
result
- the result value to set.- Returns:
- the ExpressionEvaluationDetails object itself.
-
expression
Get the expression property: Expression evaluated.- Returns:
- the expression value.
-
withExpression
Set the expression property: Expression evaluated.- Parameters:
expression
- the expression value to set.- Returns:
- the ExpressionEvaluationDetails object itself.
-
expressionKind
Get the expressionKind property: The kind of expression that was evaluated.- Returns:
- the expressionKind value.
-
path
Get the path property: Property path if the expression is a field or an alias.- Returns:
- the path value.
-
withPath
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
Get the expressionValue property: Value of the expression.- Returns:
- the expressionValue value.
-
withExpressionValue
Set the expressionValue property: Value of the expression.- Parameters:
expressionValue
- the expressionValue value to set.- Returns:
- the ExpressionEvaluationDetails object itself.
-
targetValue
Get the targetValue property: Target value to be compared with the expression value.- Returns:
- the targetValue value.
-
withTargetValue
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
Get the operator property: Operator to compare the expression value and the target value.- Returns:
- the operator value.
-
withOperator
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.
-