Class NetworkRuleSet
java.lang.Object
com.azure.resourcemanager.cognitiveservices.models.NetworkRuleSet
A set of rules governing the network accessibility.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match.ipRules()
Get the ipRules property: The list of IP address rules.void
validate()
Validates the instance.Get the virtualNetworkRules property: The list of virtual network rules.withDefaultAction
(NetworkRuleAction defaultAction) Set the defaultAction property: The default action when no rule from ipRules and from virtualNetworkRules match.withIpRules
(List<IpRule> ipRules) Set the ipRules property: The list of IP address rules.withVirtualNetworkRules
(List<VirtualNetworkRule> virtualNetworkRules) Set the virtualNetworkRules property: The list of virtual network rules.
-
Constructor Details
-
NetworkRuleSet
public NetworkRuleSet()
-
-
Method Details
-
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:
- the defaultAction value.
-
withDefaultAction
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:
defaultAction
- the defaultAction value to set.- Returns:
- the NetworkRuleSet object itself.
-
ipRules
Get the ipRules property: The list of IP address rules.- Returns:
- the ipRules value.
-
withIpRules
Set the ipRules property: The list of IP address rules.- Parameters:
ipRules
- the ipRules value to set.- Returns:
- the NetworkRuleSet object itself.
-
virtualNetworkRules
Get the virtualNetworkRules property: The list of virtual network rules.- Returns:
- the virtualNetworkRules value.
-
withVirtualNetworkRules
Set the virtualNetworkRules property: The list of virtual network rules.- Parameters:
virtualNetworkRules
- the virtualNetworkRules value to set.- Returns:
- the NetworkRuleSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-