DiskDeleteOptionTypes Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. DiskDeleteOptionTypes
- com.
- com.
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
Disk |
DELETE
Static value Delete for Disk |
static final
Disk |
DETACH
Static value Detach for Disk |
Constructor Summary
Constructor | Description |
---|---|
DiskDeleteOptionTypes() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Disk |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Disk |
fromString(String name)
Creates or finds a Disk |
static
Collection<Disk |
values()
Gets known Disk |
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
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:
Returns:
values
public static Collection
Gets known DiskDeleteOptionTypes values.
Returns:
Applies to
Azure SDK for Java