Class ZonalAllocationPolicy

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

public final class ZonalAllocationPolicy extends com.azure.core.util.ExpandableStringEnum<ZonalAllocationPolicy>
Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported.
  • Field Details

    • AUTOMATIC

      public static final ZonalAllocationPolicy AUTOMATIC
      Static value Automatic for ZonalAllocationPolicy.
    • USER_DEFINED

      public static final ZonalAllocationPolicy USER_DEFINED
      Static value UserDefined for ZonalAllocationPolicy.
    • NO_ZONES

      public static final ZonalAllocationPolicy NO_ZONES
      Static value NoZones for ZonalAllocationPolicy.
  • Constructor Details

    • ZonalAllocationPolicy

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

    • fromString

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

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