Class IpRule


  • public final class IpRule
    extends Object
    The IP restriction rule of the Azure Cognitive Search service.
    • Constructor Detail

      • IpRule

        public IpRule()
    • Method Detail

      • value

        public String value()
        Get the value property: Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.
        Returns:
        the value value.
      • withValue

        public IpRule withValue​(String value)
        Set the value property: Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.
        Parameters:
        value - the value value to set.
        Returns:
        the IpRule object itself.
      • validate

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