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>

public final class PolicyRule extends com.azure.core.util.ExpandableStringEnum<PolicyRule>
Enum representing different network policy rules.
  • Field Details

    • DENY_ALL

      public static final PolicyRule DENY_ALL
      Static value DenyAll for PolicyRule.
    • 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.
  • Constructor Details

  • Method Details

    • fromString

      public static PolicyRule fromString(String name)
      Creates or finds a PolicyRule from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding PolicyRule.
    • values

      public static Collection<PolicyRule> values()
      Gets known PolicyRule values.
      Returns:
      known PolicyRule values.