Class PolicySetResult

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.PolicySetResult

public final class PolicySetResult extends Object
Result of a policy set evaluation.
  • Constructor Details

    • PolicySetResult

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

    • hasError

      public Boolean hasError()
      Get the hasError property: A value indicating whether this policy set evaluation has discovered violations.
      Returns:
      the hasError value.
    • withHasError

      public PolicySetResult withHasError(Boolean hasError)
      Set the hasError property: A value indicating whether this policy set evaluation has discovered violations.
      Parameters:
      hasError - the hasError value to set.
      Returns:
      the PolicySetResult object itself.
    • policyViolations

      public List<PolicyViolation> policyViolations()
      Get the policyViolations property: The list of policy violations.
      Returns:
      the policyViolations value.
    • withPolicyViolations

      public PolicySetResult withPolicyViolations(List<PolicyViolation> policyViolations)
      Set the policyViolations property: The list of policy violations.
      Parameters:
      policyViolations - the policyViolations value to set.
      Returns:
      the PolicySetResult object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.