Class FieldRestriction
java.lang.Object
com.azure.resourcemanager.policyinsights.models.FieldRestriction
The restrictions on a field imposed by a specific policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the defaultValue property: The value that policy will set for the field if the user does not provide a value.policy()
Get the policy property: The details of the policy that is causing the field restriction.result()
Get the result property: The type of restriction that is imposed on the field.void
validate()
Validates the instance.values()
Get the values property: The values that policy either requires or denies for the field.
-
Constructor Details
-
FieldRestriction
public FieldRestriction()Creates an instance of FieldRestriction class.
-
-
Method Details
-
result
Get the result property: The type of restriction that is imposed on the field.- Returns:
- the result value.
-
defaultValue
Get the defaultValue property: The value that policy will set for the field if the user does not provide a value.- Returns:
- the defaultValue value.
-
values
Get the values property: The values that policy either requires or denies for the field.- Returns:
- the values value.
-
policy
Get the policy property: The details of the policy that is causing the field restriction.- Returns:
- the policy value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-