次の方法で共有


ComponentPolicyEvaluationDetails Class

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

Implements

public final class ComponentPolicyEvaluationDetails
implements JsonSerializable<ComponentPolicyEvaluationDetails>

Policy evaluation details.

Constructor Summary

Constructor Description
ComponentPolicyEvaluationDetails()

Creates an instance of ComponentPolicyEvaluationDetails class.

Method Summary

Modifier and Type Method and Description
List<ComponentExpressionEvaluationDetails> evaluatedExpressions()

Get the evaluatedExpressions property: Details of the evaluated expressions.

static ComponentPolicyEvaluationDetails fromJson(JsonReader jsonReader)

Reads an instance of ComponentPolicyEvaluationDetails from the JsonReader.

String reason()

Get the reason property: Additional textual reason for the evaluation outcome.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ComponentPolicyEvaluationDetails withReason(String reason)

Set the reason property: Additional textual reason for the evaluation outcome.

Methods inherited from java.lang.Object

Constructor Details

ComponentPolicyEvaluationDetails

public ComponentPolicyEvaluationDetails()

Creates an instance of ComponentPolicyEvaluationDetails class.

Method Details

evaluatedExpressions

public List<ComponentExpressionEvaluationDetails> evaluatedExpressions()

Get the evaluatedExpressions property: Details of the evaluated expressions.

Returns:

the evaluatedExpressions value.

fromJson

public static ComponentPolicyEvaluationDetails fromJson(JsonReader jsonReader)

Reads an instance of ComponentPolicyEvaluationDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ComponentPolicyEvaluationDetails 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 ComponentPolicyEvaluationDetails.

reason

public String reason()

Get the reason property: Additional textual reason for the evaluation outcome.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReason

public ComponentPolicyEvaluationDetails withReason(String reason)

Set the reason property: Additional textual reason for the evaluation outcome.

Parameters:

reason - the reason value to set.

Returns:

the ComponentPolicyEvaluationDetails object itself.

Applies to