Partilhar via


VirtualMachineEvictionPolicyTypes Class

public final class VirtualMachineEvictionPolicyTypes
extends ExpandableStringEnum<VirtualMachineEvictionPolicyTypes>

Specifies the eviction policy for the Azure Spot VM/VMSS.

Field Summary

Modifier and Type Field and Description
static final VirtualMachineEvictionPolicyTypes DEALLOCATE

Static value Deallocate for VirtualMachineEvictionPolicyTypes.

static final VirtualMachineEvictionPolicyTypes DELETE

Static value Delete for VirtualMachineEvictionPolicyTypes.

Constructor Summary

Constructor Description
VirtualMachineEvictionPolicyTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VirtualMachineEvictionPolicyTypes value.

Method Summary

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

Creates or finds a VirtualMachineEvictionPolicyTypes from its string representation.

static Collection<VirtualMachineEvictionPolicyTypes> values()

Gets known VirtualMachineEvictionPolicyTypes values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEALLOCATE

public static final VirtualMachineEvictionPolicyTypes DEALLOCATE

Static value Deallocate for VirtualMachineEvictionPolicyTypes.

DELETE

public static final VirtualMachineEvictionPolicyTypes DELETE

Static value Delete for VirtualMachineEvictionPolicyTypes.

Constructor Details

VirtualMachineEvictionPolicyTypes

@Deprecated
public VirtualMachineEvictionPolicyTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VirtualMachineEvictionPolicyTypes value.

Method Details

fromString

public static VirtualMachineEvictionPolicyTypes fromString(String name)

Creates or finds a VirtualMachineEvictionPolicyTypes from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VirtualMachineEvictionPolicyTypes.

values

public static Collection values()

Gets known VirtualMachineEvictionPolicyTypes values.

Returns:

known VirtualMachineEvictionPolicyTypes values.

Applies to