Class DiskDeleteOptionTypes
java.lang.Object
com.azure.core.util.ExpandableStringEnum<DiskDeleteOptionTypes>
com.azure.resourcemanager.compute.models.DiskDeleteOptionTypes
public final class DiskDeleteOptionTypes
extends com.azure.core.util.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
FieldsModifier and TypeFieldDescriptionstatic final DiskDeleteOptionTypesStatic value Delete for DiskDeleteOptionTypes.static final DiskDeleteOptionTypesStatic value Detach for DiskDeleteOptionTypes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskDeleteOptionTypesfromString(String name) Creates or finds a DiskDeleteOptionTypes from its string representation.static Collection<DiskDeleteOptionTypes>values()Gets known DiskDeleteOptionTypes values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
DELETE
Static value Delete for DiskDeleteOptionTypes. -
DETACH
Static value Detach for DiskDeleteOptionTypes.
-
-
Constructor Details
-
DiskDeleteOptionTypes
Deprecated.Use thefromString(String)factory method.Creates a new instance of DiskDeleteOptionTypes value.
-
-
Method Details
-
fromString
Creates or finds a DiskDeleteOptionTypes from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding DiskDeleteOptionTypes.
-
values
Gets known DiskDeleteOptionTypes values.- Returns:
- known DiskDeleteOptionTypes values.
-
fromString(String)factory method.