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 Details

    • PolicyEvaluationResult

      public PolicyEvaluationResult()
      Creates an instance of PolicyEvaluationResult class.
  • Method Details

    • 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.