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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ZonalAllocationPolicy
Static value Automatic for ZonalAllocationPolicy.static final ZonalAllocationPolicy
Static value NoZones for ZonalAllocationPolicy.static final ZonalAllocationPolicy
Static value UserDefined for ZonalAllocationPolicy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonalAllocationPolicy
fromString
(String name) Creates or finds a ZonalAllocationPolicy from its string representation.static Collection
<ZonalAllocationPolicy> values()
Gets known ZonalAllocationPolicy values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AUTOMATIC
Static value Automatic for ZonalAllocationPolicy. -
USER_DEFINED
Static value UserDefined for ZonalAllocationPolicy. -
NO_ZONES
Static value NoZones for ZonalAllocationPolicy.
-
-
Constructor Details
-
ZonalAllocationPolicy
Deprecated.Use thefromString(String)
factory method.Creates a new instance of ZonalAllocationPolicy value.
-
-
Method Details
-
fromString
Creates or finds a ZonalAllocationPolicy from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding ZonalAllocationPolicy.
-
values
Gets known ZonalAllocationPolicy values.- Returns:
- known ZonalAllocationPolicy values.
-
fromString(String)
factory method.