Class NetworkRuleSet

java.lang.Object
com.azure.resourcemanager.search.models.NetworkRuleSet

public final class NetworkRuleSet extends Object
Network specific rules that determine how the Azure Cognitive Search service may be reached.
  • Constructor Details

    • NetworkRuleSet

      public NetworkRuleSet()
  • Method Details

    • ipRules

      public List<IpRule> ipRules()
      Get the ipRules property: A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
      Returns:
      the ipRules value.
    • withIpRules

      public NetworkRuleSet withIpRules(List<IpRule> ipRules)
      Set the ipRules property: A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
      Parameters:
      ipRules - the ipRules value to set.
      Returns:
      the NetworkRuleSet object itself.
    • validate

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