NetworkRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. NetworkRuleSet
- com.
Implements
public final class NetworkRuleSet
implements JsonSerializable<NetworkRuleSet>
A set of rules governing the network accessibility of a vault.
Constructor Summary
Constructor | Description |
---|---|
NetworkRuleSet() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
Network |
bypass()
Get the bypass property: Tells what traffic can bypass network rules. |
Network |
defaultAction()
Get the default |
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. |
List<Virtual |
virtualNetworkRules()
Get the virtual |
Network |
withBypass(NetworkRuleBypassOptions bypass)
Set the bypass property: Tells what traffic can bypass network rules. |
Network |
withDefaultAction(NetworkRuleAction defaultAction)
Set the default |
Network |
withIpRules(List<IpRule> ipRules)
Set the ip |
Network |
withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
Set the virtual |
Methods inherited from java.lang.Object
Constructor Details
NetworkRuleSet
public NetworkRuleSet()
Creates an instance of NetworkRuleSet class.
Method Details
bypass
public NetworkRuleBypassOptions bypass()
Get the bypass property: Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'.
Returns:
defaultAction
public NetworkRuleAction defaultAction()
Get the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.
Returns:
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: The list of IP address rules.
Returns:
toJson
validate
public void validate()
Validates the instance.
virtualNetworkRules
public List
Get the virtualNetworkRules property: The list of virtual network rules.
Returns:
withBypass
public NetworkRuleSet withBypass(NetworkRuleBypassOptions bypass)
Set the bypass property: Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'.
Parameters:
Returns:
withDefaultAction
public NetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction)
Set the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.
Parameters:
Returns:
withIpRules
public NetworkRuleSet withIpRules(List
Set the ipRules property: The list of IP address rules.
Parameters:
Returns:
withVirtualNetworkRules
public NetworkRuleSet withVirtualNetworkRules(List
Set the virtualNetworkRules property: The list of virtual network rules.
Parameters:
Returns:
Applies to
Azure SDK for Java