NetworkRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. search. models. NetworkRuleSet
- com.
Implements
public final class NetworkRuleSet
implements JsonSerializable<NetworkRuleSet>
Network-specific rules that determine how the search service can be reached.
Constructor Summary
Constructor | Description |
---|---|
NetworkRuleSet() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
List<Ip |
ipRules()
Get the ip |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Network |
withIpRules(List<IpRule> ipRules)
Set the ip |
Methods inherited from java.lang.Object
Constructor Details
NetworkRuleSet
public NetworkRuleSet()
Creates an instance of NetworkRuleSet class.
Method Details
fromJson
public static NetworkRuleSet fromJson(JsonReader jsonReader)
Reads an instance of NetworkRuleSet from the JsonReader.
Parameters:
Returns:
Throws:
ipRules
public List
Get the ipRules property: A list of IP restriction rules used for an IP firewall. Any IPs that do not match the rules are blocked by the firewall. These rules are only applied when the 'publicNetworkAccess' of the search service is 'enabled'.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIpRules
public NetworkRuleSet withIpRules(List
Set the ipRules property: A list of IP restriction rules used for an IP firewall. Any IPs that do not match the rules are blocked by the firewall. These rules are only applied when the 'publicNetworkAccess' of the search service is 'enabled'.
Parameters:
Returns:
Applies to
Azure SDK for Java