共用方式為


StorageAccountStrategy Class

public final class StorageAccountStrategy
extends ExpandableStringEnum<StorageAccountStrategy>

Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable.

Field Summary

Modifier and Type Field and Description
static final StorageAccountStrategy DEFAULT_STANDARD_LRS

Static value DefaultStandard_LRS for StorageAccountStrategy.

static final StorageAccountStrategy PREFER_STANDARD_ZRS

Static value PreferStandard_ZRS for StorageAccountStrategy.

Constructor Summary

Constructor Description
StorageAccountStrategy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of StorageAccountStrategy value.

Method Summary

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

Creates or finds a StorageAccountStrategy from its string representation.

static Collection<StorageAccountStrategy> values()

Gets known StorageAccountStrategy values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEFAULT_STANDARD_LRS

public static final StorageAccountStrategy DEFAULT_STANDARD_LRS

Static value DefaultStandard_LRS for StorageAccountStrategy.

PREFER_STANDARD_ZRS

public static final StorageAccountStrategy PREFER_STANDARD_ZRS

Static value PreferStandard_ZRS for StorageAccountStrategy.

Constructor Details

StorageAccountStrategy

@Deprecated
public StorageAccountStrategy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of StorageAccountStrategy value.

Method Details

fromString

public static StorageAccountStrategy fromString(String name)

Creates or finds a StorageAccountStrategy from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding StorageAccountStrategy.

values

public static Collection<StorageAccountStrategy> values()

Gets known StorageAccountStrategy values.

Returns:

known StorageAccountStrategy values.

Applies to