NetworkRuleSet Class

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

public final class NetworkRuleSet

A set of rules governing the network accessibility.

Constructor Summary

Constructor Description
NetworkRuleSet()

Creates an instance of NetworkRuleSet class.

Method Summary

Modifier and Type Method and Description
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 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.

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:

the defaultAction value.

ipRules

public List ipRules()

Get the ipRules property: The list of IP address rules.

Returns:

the ipRules value.

validate

public void validate()

Validates the instance.

virtualNetworkRules

public List virtualNetworkRules()

Get the virtualNetworkRules property: The list of virtual network rules.

Returns:

the virtualNetworkRules value.

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:

defaultAction - the defaultAction value to set.

Returns:

the NetworkRuleSet object itself.

withIpRules

public NetworkRuleSet withIpRules(List ipRules)

Set the ipRules property: The list of IP address rules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the NetworkRuleSet object itself.

withVirtualNetworkRules

public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules)

Set the virtualNetworkRules property: The list of virtual network rules.

Parameters:

virtualNetworkRules - the virtualNetworkRules value to set.

Returns:

the NetworkRuleSet object itself.

Applies to