NetworkRuleAction Class

public final class NetworkRuleAction
extends ExpandableStringEnum<NetworkRuleAction>

The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.

Field Summary

Modifier and Type Field and Description
static final NetworkRuleAction ALLOW

Static value Allow for NetworkRuleAction.

static final NetworkRuleAction DENY

Static value Deny for NetworkRuleAction.

Constructor Summary

Constructor Description
NetworkRuleAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkRuleAction value.

Method Summary

Modifier and Type Method and Description
static NetworkRuleAction fromString(String name)

Creates or finds a NetworkRuleAction from its string representation.

static Collection<NetworkRuleAction> values()

Gets known NetworkRuleAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALLOW

public static final NetworkRuleAction ALLOW

Static value Allow for NetworkRuleAction.

DENY

public static final NetworkRuleAction DENY

Static value Deny for NetworkRuleAction.

Constructor Details

NetworkRuleAction

@Deprecated
public NetworkRuleAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkRuleAction value.

Method Details

fromString

public static NetworkRuleAction fromString(String name)

Creates or finds a NetworkRuleAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NetworkRuleAction.

values

public static Collection values()

Gets known NetworkRuleAction values.

Returns:

known NetworkRuleAction values.

Applies to