次の方法で共有


ComponentExpressionEvaluationDetails Class

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

Implements

public final class ComponentExpressionEvaluationDetails
implements JsonSerializable<ComponentExpressionEvaluationDetails>

Evaluation details of policy language expressions.

Constructor Summary

Constructor Description
ComponentExpressionEvaluationDetails()

Creates an instance of ComponentExpressionEvaluationDetails 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.

static ComponentExpressionEvaluationDetails fromJson(JsonReader jsonReader)

Reads an instance of ComponentExpressionEvaluationDetails from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ComponentExpressionEvaluationDetails withResult(String result)

Set the result property: Evaluation result.

Methods inherited from java.lang.Object

Constructor Details

ComponentExpressionEvaluationDetails

public ComponentExpressionEvaluationDetails()

Creates an instance of ComponentExpressionEvaluationDetails 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.

fromJson

public static ComponentExpressionEvaluationDetails fromJson(JsonReader jsonReader)

Reads an instance of ComponentExpressionEvaluationDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ComponentExpressionEvaluationDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ComponentExpressionEvaluationDetails.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResult

public ComponentExpressionEvaluationDetails withResult(String result)

Set the result property: Evaluation result.

Parameters:

result - the result value to set.

Returns:

the ComponentExpressionEvaluationDetails object itself.

Applies to