ZonalAllocationPolicy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. redis. models. ZonalAllocationPolicy
- com.
- com.
public final class ZonalAllocationPolicy
extends 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 Summary
Modifier and Type | Field and Description |
---|---|
static final
Zonal |
AUTOMATIC
Static value Automatic for Zonal |
static final
Zonal |
NO_ZONES
Static value No |
static final
Zonal |
USER_DEFINED
Static value User |
Constructor Summary
Constructor | Description |
---|---|
ZonalAllocationPolicy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Zonal |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Zonal |
fromString(String name)
Creates or finds a Zonal |
static
Collection<Zonal |
values()
Gets known Zonal |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
AUTOMATIC
public static final ZonalAllocationPolicy AUTOMATIC
Static value Automatic for ZonalAllocationPolicy.
NO_ZONES
public static final ZonalAllocationPolicy NO_ZONES
Static value NoZones for ZonalAllocationPolicy.
USER_DEFINED
public static final ZonalAllocationPolicy USER_DEFINED
Static value UserDefined for ZonalAllocationPolicy.
Constructor Details
ZonalAllocationPolicy
@Deprecated
public ZonalAllocationPolicy()
Deprecated
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:
Returns:
values
public static Collection
Gets known ZonalAllocationPolicy values.
Returns:
Applies to
Azure SDK for Java