Class PolicySetResult
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.PolicySetResult
Result of a policy set evaluation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhasError()
Get the hasError property: A value indicating whether this policy set evaluation has discovered violations.Get the policyViolations property: The list of policy violations.void
validate()
Validates the instance.withHasError
(Boolean hasError) Set the hasError property: A value indicating whether this policy set evaluation has discovered violations.withPolicyViolations
(List<PolicyViolation> policyViolations) Set the policyViolations property: The list of policy violations.
-
Constructor Details
-
PolicySetResult
public PolicySetResult()Creates an instance of PolicySetResult class.
-
-
Method Details
-
hasError
Get the hasError property: A value indicating whether this policy set evaluation has discovered violations.- Returns:
- the hasError value.
-
withHasError
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
Get the policyViolations property: The list of policy violations.- Returns:
- the policyViolations value.
-
withPolicyViolations
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.
-