NetworkRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. cognitiveservices. models. NetworkRuleSet
- com.
public final class NetworkRuleSet
A set of rules governing the network accessibility.
Constructor Summary
Constructor | Description |
---|---|
NetworkRuleSet() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
Network |
defaultAction()
Get the default |
List<Ip |
ipRules()
Get the ip |
void |
validate()
Validates the instance. |
List<Virtual |
virtualNetworkRules()
Get the virtual |
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
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:
ipRules
public List
Get the ipRules property: The list of IP address rules.
Returns:
validate
public void validate()
Validates the instance.
virtualNetworkRules
public List
Get the virtualNetworkRules property: The list of virtual network rules.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for