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