AllocationStrategy Class

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 AllocationStrategy CAPACITY_OPTIMIZED

Static value CapacityOptimized for AllocationStrategy.

static final AllocationStrategy LOWEST_PRICE

Static value LowestPrice for AllocationStrategy.

Constructor Summary

Constructor Description
AllocationStrategy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AllocationStrategy value.

Method Summary

Modifier and Type Method and Description
static AllocationStrategy fromString(String name)

Creates or finds a AllocationStrategy from its string representation.

static Collection<AllocationStrategy> values()

Gets known AllocationStrategy values.

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

Use the fromString(String name) 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 values()

Gets known AllocationStrategy values.

Returns:

known AllocationStrategy values.

Applies to