Class PolicyEvaluationResult
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.PolicyEvaluationResult
-
public final class PolicyEvaluationResult extends Object
The result of a non-compliant policy evaluation against the given resource content.
-
-
Constructor Summary
Constructors Constructor Description PolicyEvaluationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyEvaluationDetails
evaluationDetails()
Get the evaluationDetails property: The detailed results of the policy expressions and values that were evaluated.String
evaluationResult()
Get the evaluationResult property: The result of the policy evaluation against the resource.PolicyReference
policyInfo()
Get the policyInfo property: The details of the policy that was evaluated.void
validate()
Validates the instance.
-
-
-
Method Detail
-
policyInfo
public PolicyReference policyInfo()
Get the policyInfo property: The details of the policy that was evaluated.- Returns:
- the policyInfo value.
-
evaluationResult
public String 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
public PolicyEvaluationDetails 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.
-
-