PolicySetResult Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. PolicySetResult
- com.
public final class PolicySetResult
Result of a policy set evaluation.
Constructor Summary
Constructor | Description |
---|---|
PolicySetResult() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
hasError()
Get the has |
List<Policy |
policyViolations()
Get the policy |
void |
validate()
Validates the instance. |
Policy |
withHasError(Boolean hasError)
Set the has |
Policy |
withPolicyViolations(List<PolicyViolation> policyViolations)
Set the policy |
Methods inherited from java.lang.Object
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:
policyViolations
public List
Get the policyViolations property: The list of policy violations.
Returns:
validate
public void validate()
Validates the instance.
withHasError
public PolicySetResult withHasError(Boolean hasError)
Set the hasError property: A value indicating whether this policy set evaluation has discovered violations.
Parameters:
Returns:
withPolicyViolations
public PolicySetResult withPolicyViolations(List
Set the policyViolations property: The list of policy violations.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for