PolicyRule Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerservice. models. PolicyRule
- com.
- com.
public final class PolicyRule
extends ExpandableStringEnum<PolicyRule>
Enum representing different network policy rules.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Policy |
ALLOW_ALL
Static value Allow |
|
static final
Policy |
ALLOW_SAME_NAMESPACE
Static value Allow |
|
static final
Policy |
DENY_ALL
Static value Deny |
Constructor Summary
| Constructor | Description |
|---|---|
| PolicyRule() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Policy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Policy |
fromString(String name)
Creates or finds a Policy |
|
static
Collection<Policy |
values()
Gets known Policy |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALLOW_ALL
public static final PolicyRule ALLOW_ALL
Static value AllowAll for PolicyRule.
ALLOW_SAME_NAMESPACE
public static final PolicyRule ALLOW_SAME_NAMESPACE
Static value AllowSameNamespace for PolicyRule.
DENY_ALL
public static final PolicyRule DENY_ALL
Static value DenyAll for PolicyRule.
Constructor Details
PolicyRule
@Deprecated
public PolicyRule()
Deprecated
Creates a new instance of PolicyRule value.
Method Details
fromString
public static PolicyRule fromString(String name)
Creates or finds a PolicyRule from its string representation.
Parameters:
Returns:
values
public static Collection<PolicyRule> values()
Gets known PolicyRule values.
Returns: