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 PolicyRuleAllow all network traffic.static final PolicyRuleAllow traffic within the same namespace.static final PolicyRuleDeny all network traffic. -
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
Deny all network traffic. -
ALLOW_ALL
Allow all network traffic. -
ALLOW_SAME_NAMESPACE
Allow traffic within the same namespace.
-
-
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.