Class ReservationType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ReservationType>
com.azure.resourcemanager.compute.models.ReservationType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ReservationType
extends com.azure.core.util.ExpandableStringEnum<ReservationType>
Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations and 'Targeted'
for reservations that enable a VM to consume a specific capacity reservation when a capacity reservation group is
provided. The reservation type is immutable and cannot be changed after it is assigned.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReservationTypeStatic value Block for ReservationType.static final ReservationTypeStatic value Targeted for ReservationType. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReservationTypefromString(String name) Creates or finds a ReservationType from its string representation.static Collection<ReservationType> values()Gets known ReservationType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
TARGETED
Static value Targeted for ReservationType. -
BLOCK
Static value Block for ReservationType.
-
-
Constructor Details
-
ReservationType
Deprecated.Use thefromString(String)factory method.Creates a new instance of ReservationType value.
-
-
Method Details
-
fromString
Creates or finds a ReservationType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ReservationType.
-
values
Gets known ReservationType values.- Returns:
- known ReservationType values.
-
fromString(String)factory method.