PolicySetResult Class

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

public final class PolicySetResult

Result of a policy set evaluation.

Constructor Summary

Constructor Description
PolicySetResult()

Creates an instance of PolicySetResult class.

Method Summary

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.

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:

the hasError value.

policyViolations

public List policyViolations()

Get the policyViolations property: The list of policy violations.

Returns:

the policyViolations value.

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:

hasError - the hasError value to set.

Returns:

the PolicySetResult object itself.

withPolicyViolations

public PolicySetResult withPolicyViolations(List policyViolations)

Set the policyViolations property: The list of policy violations.

Parameters:

policyViolations - the policyViolations value to set.

Returns:

the PolicySetResult object itself.

Applies to