다음을 통해 공유


DiskDeleteOptionTypes Class

public final class DiskDeleteOptionTypes
extends ExpandableStringEnum<DiskDeleteOptionTypes>

Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed disk is deleted or detached. Supported values are: **Delete.** If this value is used, the managed disk is deleted when VM gets deleted. **Detach.** If this value is used, the managed disk is retained after VM gets deleted. Minimum api-version: 2021-03-01.

Field Summary

Modifier and Type Field and Description
static final DiskDeleteOptionTypes DELETE

Static value Delete for DiskDeleteOptionTypes.

static final DiskDeleteOptionTypes DETACH

Static value Detach for DiskDeleteOptionTypes.

Constructor Summary

Constructor Description
DiskDeleteOptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskDeleteOptionTypes value.

Method Summary

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

Creates or finds a DiskDeleteOptionTypes from its string representation.

static Collection<DiskDeleteOptionTypes> values()

Gets known DiskDeleteOptionTypes values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DELETE

public static final DiskDeleteOptionTypes DELETE

Static value Delete for DiskDeleteOptionTypes.

DETACH

public static final DiskDeleteOptionTypes DETACH

Static value Detach for DiskDeleteOptionTypes.

Constructor Details

DiskDeleteOptionTypes

@Deprecated
public DiskDeleteOptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskDeleteOptionTypes value.

Method Details

fromString

public static DiskDeleteOptionTypes fromString(String name)

Creates or finds a DiskDeleteOptionTypes from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DiskDeleteOptionTypes.

values

public static Collection values()

Gets known DiskDeleteOptionTypes values.

Returns:

known DiskDeleteOptionTypes values.

Applies to