Class AllocationStrategy
java.lang.Object
com.azure.core.util.ExpandableStringEnum<AllocationStrategy>
com.azure.resourcemanager.compute.models.AllocationStrategy
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class AllocationStrategy
extends com.azure.core.util.ExpandableStringEnum<AllocationStrategy>
Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AllocationStrategyStatic value CapacityOptimized for AllocationStrategy.static final AllocationStrategyStatic value LowestPrice for AllocationStrategy.static final AllocationStrategyStatic value Prioritized for AllocationStrategy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationStrategyfromString(String name) Creates or finds a AllocationStrategy from its string representation.static Collection<AllocationStrategy> values()Gets known AllocationStrategy values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
LOWEST_PRICE
Static value LowestPrice for AllocationStrategy. -
CAPACITY_OPTIMIZED
Static value CapacityOptimized for AllocationStrategy. -
PRIORITIZED
Static value Prioritized for AllocationStrategy.
-
-
Constructor Details
-
AllocationStrategy
Deprecated.Use thefromString(String)factory method.Creates a new instance of AllocationStrategy value.
-
-
Method Details
-
fromString
Creates or finds a AllocationStrategy from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding AllocationStrategy.
-
values
Gets known AllocationStrategy values.- Returns:
- known AllocationStrategy values.
-
fromString(String)factory method.