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 Details

    • FieldRestriction

      public FieldRestriction()
      Creates an instance of FieldRestriction class.
  • Method Details

    • 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.