StorageAccountStrategy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. StorageAccountStrategy
- com.
- com.
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
Storage |
DEFAULT_STANDARD_LRS
Choose Standard_LRS storage unless overridden by specifying regional storage |
|
static final
Storage |
PREFER_STANDARD_ZRS
Choose Standard_ZRS storage if the region supports it, else choose Standard_LRS storage, unless overridden by specifying regional storage |
Constructor Summary
| Constructor | Description |
|---|---|
| StorageAccountStrategy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Storage |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Storage |
fromString(String name)
Creates or finds a Storage |
|
static
Collection<Storage |
values()
Gets known Storage |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
DEFAULT_STANDARD_LRS
public static final StorageAccountStrategy DEFAULT_STANDARD_LRS
Choose Standard_LRS storage unless overridden by specifying regional storageAccountType.
PREFER_STANDARD_ZRS
public static final StorageAccountStrategy PREFER_STANDARD_ZRS
Choose Standard_ZRS storage if the region supports it, else choose Standard_LRS storage, unless overridden by specifying regional storageAccountType. If no storageAccountStrategy is specified, this is the default strategy (from API version 2025-03-03 onwards).
Constructor Details
StorageAccountStrategy
@Deprecated
public StorageAccountStrategy()
Deprecated
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:
Returns:
values
public static Collection<StorageAccountStrategy> values()
Gets known StorageAccountStrategy values.
Returns: