AllocationStrategy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. AllocationStrategy
- com.
- com.
public final class AllocationStrategy
extends ExpandableStringEnum<AllocationStrategy>
Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Allocation |
CAPACITY_OPTIMIZED
Static value Capacity |
static final
Allocation |
LOWEST_PRICE
Static value Lowest |
Constructor Summary
Constructor | Description |
---|---|
AllocationStrategy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Allocation |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Allocation |
fromString(String name)
Creates or finds a Allocation |
static
Collection<Allocation |
values()
Gets known Allocation |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CAPACITY_OPTIMIZED
public static final AllocationStrategy CAPACITY_OPTIMIZED
Static value CapacityOptimized for AllocationStrategy.
LOWEST_PRICE
public static final AllocationStrategy LOWEST_PRICE
Static value LowestPrice for AllocationStrategy.
Constructor Details
AllocationStrategy
@Deprecated
public AllocationStrategy()
Deprecated
Creates a new instance of AllocationStrategy value.
Method Details
fromString
public static AllocationStrategy fromString(String name)
Creates or finds a AllocationStrategy from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known AllocationStrategy values.
Returns:
Applies to
Azure SDK for Java