public final class PolicySetResult extends Object
Constructor and Description |
---|
PolicySetResult() |
Modifier and Type | Method and Description |
---|---|
Boolean |
hasError()
Get the hasError property: A value indicating whether this policy set evaluation has discovered violations.
|
List<PolicyViolation> |
policyViolations()
Get the policyViolations property: The list of policy violations.
|
void |
validate()
Validates the instance.
|
PolicySetResult |
withHasError(Boolean hasError)
Set the hasError property: A value indicating whether this policy set evaluation has discovered violations.
|
PolicySetResult |
withPolicyViolations(List<PolicyViolation> policyViolations)
Set the policyViolations property: The list of policy violations.
|
public Boolean hasError()
public PolicySetResult withHasError(Boolean hasError)
hasError
- the hasError value to set.public List<PolicyViolation> policyViolations()
public PolicySetResult withPolicyViolations(List<PolicyViolation> policyViolations)
policyViolations
- the policyViolations value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.