Class PolicyRule
java.lang.Object
com.azure.core.util.ExpandableStringEnum<PolicyRule>
com.azure.resourcemanager.containerservice.models.PolicyRule
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Enum representing different network policy rules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PolicyRuleStatic value AllowAll for PolicyRule.static final PolicyRuleStatic value AllowSameNamespace for PolicyRule.static final PolicyRuleStatic value DenyAll for PolicyRule. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyRulefromString(String name) Creates or finds a PolicyRule from its string representation.static Collection<PolicyRule> values()Gets known PolicyRule values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
DENY_ALL
Static value DenyAll for PolicyRule. -
ALLOW_ALL
Static value AllowAll for PolicyRule. -
ALLOW_SAME_NAMESPACE
Static value AllowSameNamespace for PolicyRule.
-
-
Constructor Details
-
PolicyRule
Deprecated.Use thefromString(String)factory method.Creates a new instance of PolicyRule value.
-
-
Method Details
-
fromString
Creates or finds a PolicyRule from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding PolicyRule.
-
values
Gets known PolicyRule values.- Returns:
- known PolicyRule values.
-
fromString(String)factory method.