ReservationType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. ReservationType
- com.
- com.
public final class ReservationType
extends 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
| Modifier and Type | Field and Description |
|---|---|
|
static final
Reservation |
BLOCK
To consume scheduled allocated block capacity reservation when a capacity reservation group is provided. |
|
static final
Reservation |
TARGETED
To consume on demand allocated capacity reservation when a capacity reservation group is provided. |
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Reservation |
fromString(String name)
Creates or finds a Reservation |
|
static
Collection<Reservation |
values()
Gets known Reservation |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
BLOCK
public static final ReservationType BLOCK
To consume scheduled allocated block capacity reservation when a capacity reservation group is provided.
TARGETED
public static final ReservationType TARGETED
To consume on demand allocated capacity reservation when a capacity reservation group is provided.
Constructor Details
ReservationType
@Deprecated
public ReservationType()
Deprecated
Creates a new instance of ReservationType value.
Method Details
fromString
public static ReservationType fromString(String name)
Creates or finds a ReservationType from its string representation.
Parameters:
Returns:
values
public static Collection<ReservationType> values()
Gets known ReservationType values.
Returns: