Class PendingField


  • public final class PendingField
    extends Object
    A field that should be evaluated against Azure Policy to determine restrictions.
    • Constructor Detail

      • PendingField

        public PendingField()
    • Method Detail

      • field

        public String field()
        Get the field property: The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias.
        Returns:
        the field value.
      • withField

        public PendingField withField​(String field)
        Set the field property: The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias.
        Parameters:
        field - the field value to set.
        Returns:
        the PendingField object itself.
      • values

        public List<String> values()
        Get the values property: The list of potential values for the field that should be evaluated against Azure Policy.
        Returns:
        the values value.
      • withValues

        public PendingField withValues​(List<String> values)
        Set the values property: The list of potential values for the field that should be evaluated against Azure Policy.
        Parameters:
        values - the values value to set.
        Returns:
        the PendingField object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.