Class PublicNetworkAccess

java.lang.Object
com.azure.core.util.ExpandableStringEnum<PublicNetworkAccess>
com.azure.resourcemanager.redis.models.PublicNetworkAccess
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class PublicNetworkAccess extends com.azure.core.util.ExpandableStringEnum<PublicNetworkAccess>
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
  • Field Details

    • ENABLED

      public static final PublicNetworkAccess ENABLED
      Static value Enabled for PublicNetworkAccess.
    • DISABLED

      public static final PublicNetworkAccess DISABLED
      Static value Disabled for PublicNetworkAccess.
  • Constructor Details

    • PublicNetworkAccess

      @Deprecated public PublicNetworkAccess()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of PublicNetworkAccess value.
  • Method Details

    • fromString

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

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