Class PolicyEvaluationResult
java.lang.Object
com.azure.resourcemanager.policyinsights.models.PolicyEvaluationResult
The result of a non-compliant policy evaluation against the given resource content.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PolicyEvaluationResult class. -
Method Summary
Modifier and TypeMethodDescriptionGet the evaluationDetails property: The detailed results of the policy expressions and values that were evaluated.Get the evaluationResult property: The result of the policy evaluation against the resource.Get the policyInfo property: The details of the policy that was evaluated.void
validate()
Validates the instance.
-
Constructor Details
-
PolicyEvaluationResult
public PolicyEvaluationResult()Creates an instance of PolicyEvaluationResult class.
-
-
Method Details
-
policyInfo
Get the policyInfo property: The details of the policy that was evaluated.- Returns:
- the policyInfo value.
-
evaluationResult
Get the evaluationResult property: The result of the policy evaluation against the resource. This will typically be 'NonCompliant' but may contain other values if errors were encountered.- Returns:
- the evaluationResult value.
-
evaluationDetails
Get the evaluationDetails property: The detailed results of the policy expressions and values that were evaluated.- Returns:
- the evaluationDetails value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-