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 Details

    • LOWEST_PRICE

      public static final AllocationStrategy LOWEST_PRICE
      Static value LowestPrice for AllocationStrategy.
    • CAPACITY_OPTIMIZED

      public static final AllocationStrategy CAPACITY_OPTIMIZED
      Static value CapacityOptimized for AllocationStrategy.
    • PRIORITIZED

      public static final AllocationStrategy PRIORITIZED
      Static value Prioritized for AllocationStrategy.
  • Constructor Details

    • AllocationStrategy

      @Deprecated public AllocationStrategy()
      Deprecated.
      Use the fromString(String) factory method.
      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:
      name - a name to look for.
      Returns:
      the corresponding AllocationStrategy.
    • values

      public static Collection<AllocationStrategy> values()
      Gets known AllocationStrategy values.
      Returns:
      known AllocationStrategy values.