Class FieldRestriction
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.FieldRestriction
-
public final class FieldRestriction extends Object
The restrictions on a field imposed by a specific policy.
-
-
Constructor Summary
Constructors Constructor Description FieldRestriction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
defaultValue()
Get the defaultValue property: The value that policy will set for the field if the user does not provide a value.PolicyReference
policy()
Get the policy property: The details of the policy that is causing the field restriction.FieldRestrictionResult
result()
Get the result property: The type of restriction that is imposed on the field.void
validate()
Validates the instance.List<String>
values()
Get the values property: The values that policy either requires or denies for the field.
-
-
-
Method Detail
-
result
public FieldRestrictionResult result()
Get the result property: The type of restriction that is imposed on the field.- Returns:
- the result value.
-
defaultValue
public String 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
public List<String> values()
Get the values property: The values that policy either requires or denies for the field.- Returns:
- the values value.
-
policy
public PolicyReference 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.
-
-