public final class NetworkRuleSet extends Object
| Constructor and Description |
|---|
NetworkRuleSet() |
| Modifier and Type | Method and Description |
|---|---|
NetworkRuleBypassOptions |
bypass()
Get the bypass property: Tells what traffic can bypass network rules.
|
NetworkRuleAction |
defaultAction()
Get the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match.
|
List<IpRule> |
ipRules()
Get the ipRules property: The list of IP address rules.
|
void |
validate()
Validates the instance.
|
List<VirtualNetworkRule> |
virtualNetworkRules()
Get the virtualNetworkRules property: The list of virtual network rules.
|
NetworkRuleSet |
withBypass(NetworkRuleBypassOptions bypass)
Set the bypass property: Tells what traffic can bypass network rules.
|
NetworkRuleSet |
withDefaultAction(NetworkRuleAction defaultAction)
Set the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match.
|
NetworkRuleSet |
withIpRules(List<IpRule> ipRules)
Set the ipRules property: The list of IP address rules.
|
NetworkRuleSet |
withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
Set the virtualNetworkRules property: The list of virtual network rules.
|
public NetworkRuleBypassOptions bypass()
public NetworkRuleSet withBypass(NetworkRuleBypassOptions bypass)
bypass - the bypass value to set.public NetworkRuleAction defaultAction()
public NetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction)
defaultAction - the defaultAction value to set.public List<IpRule> ipRules()
public NetworkRuleSet withIpRules(List<IpRule> ipRules)
ipRules - the ipRules value to set.public List<VirtualNetworkRule> virtualNetworkRules()
public NetworkRuleSet withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
virtualNetworkRules - the virtualNetworkRules value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.