ZonalAllocationPolicy Class

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 ZonalAllocationPolicy AUTOMATIC

Static value Automatic for ZonalAllocationPolicy.

static final ZonalAllocationPolicy NO_ZONES

Static value NoZones for ZonalAllocationPolicy.

static final ZonalAllocationPolicy USER_DEFINED

Static value UserDefined for ZonalAllocationPolicy.

Constructor Summary

Constructor Description
ZonalAllocationPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ZonalAllocationPolicy value.

Method Summary

Modifier and Type Method and Description
static ZonalAllocationPolicy fromString(String name)

Creates or finds a ZonalAllocationPolicy from its string representation.

static Collection<ZonalAllocationPolicy> values()

Gets known ZonalAllocationPolicy values.

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

Use the fromString(String name) 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 values()

Gets known ZonalAllocationPolicy values.

Returns:

known ZonalAllocationPolicy values.

Applies to