Class StorageAccountStrategy
java.lang.Object
com.azure.core.util.ExpandableStringEnum<StorageAccountStrategy>
com.azure.resourcemanager.compute.models.StorageAccountStrategy
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class StorageAccountStrategy
extends com.azure.core.util.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
FieldsModifier and TypeFieldDescriptionstatic final StorageAccountStrategyChoose Standard_LRS storage unless overridden by specifying regional storageAccountType.static final StorageAccountStrategyChoose Standard_ZRS storage if the region supports it, else choose Standard_LRS storage, unless overridden by specifying regional storageAccountType. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageAccountStrategyfromString(String name) Creates or finds a StorageAccountStrategy from its string representation.static Collection<StorageAccountStrategy> values()Gets known StorageAccountStrategy values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
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). -
DEFAULT_STANDARD_LRS
Choose Standard_LRS storage unless overridden by specifying regional storageAccountType.
-
-
Constructor Details
-
StorageAccountStrategy
Deprecated.Use thefromString(String)factory method.Creates a new instance of StorageAccountStrategy value.
-
-
Method Details
-
fromString
Creates or finds a StorageAccountStrategy from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding StorageAccountStrategy.
-
values
Gets known StorageAccountStrategy values.- Returns:
- known StorageAccountStrategy values.
-
fromString(String)factory method.