NetworkRuleSet Class

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

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 NetworkRuleSet class.

Method Summary

Modifier and Type Method and Description
static NetworkRuleSet fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSet from the JsonReader.

List<IpRule> ipRules()

Get the ipRules property: A list of IP restriction rules used for an IP firewall.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkRuleSet withIpRules(List<IpRule> ipRules)

Set the ipRules property: A list of IP restriction rules used for an IP firewall.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkRuleSet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the NetworkRuleSet.

ipRules

public List ipRules()

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:

the ipRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIpRules

public NetworkRuleSet withIpRules(List ipRules)

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:

ipRules - the ipRules value to set.

Returns:

the NetworkRuleSet object itself.

Applies to