ExpressionEvaluationDetails Class

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

public final class ExpressionEvaluationDetails

Evaluation details of policy language expressions.

Constructor Summary

Constructor Description
ExpressionEvaluationDetails()

Creates an instance of ExpressionEvaluationDetails class.

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

ExpressionEvaluationDetails

public ExpressionEvaluationDetails()

Creates an instance of ExpressionEvaluationDetails class.

Method Details

expression

public String expression()

Get the expression property: Expression evaluated.

Returns:

the expression value.

expressionKind

public String expressionKind()

Get the expressionKind property: The kind of expression that was evaluated.

Returns:

the expressionKind value.

expressionValue

public Object expressionValue()

Get the expressionValue property: Value of the expression.

Returns:

the expressionValue value.

operator

public String operator()

Get the operator property: Operator to compare the expression value and the target value.

Returns:

the operator value.

path

public String path()

Get the path property: Property path if the expression is a field or an alias.

Returns:

the path value.

result

public String result()

Get the result property: Evaluation result.

Returns:

the result value.

targetValue

public Object targetValue()

Get the targetValue property: Target value to be compared with the expression value.

Returns:

the targetValue value.

validate

public void validate()

Validates the instance.

withExpression

public ExpressionEvaluationDetails withExpression(String expression)

Set the expression property: Expression evaluated.

Parameters:

expression - the expression value to set.

Returns:

the ExpressionEvaluationDetails object itself.

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.

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.

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.

withResult

public ExpressionEvaluationDetails withResult(String result)

Set the result property: Evaluation result.

Parameters:

result - the result value to set.

Returns:

the ExpressionEvaluationDetails object itself.

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.

Applies to