Class CapacityReservationProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.CapacityReservationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapacityReservationProperties>
public final class CapacityReservationProperties
extends Object
implements com.azure.json.JsonSerializable<CapacityReservationProperties>
Properties of the Capacity reservation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CapacityReservationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapacityReservationProperties from the JsonReader.Get the instanceView property: The Capacity reservation instance view.Get the platformFaultDomainCount property: Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.Get the provisioningState property: The provisioning state, which only appears in the response.Get the provisioningTime property: The date time when the capacity reservation was last updated.Get the reservationId property: A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.Get the timeCreated property: Specifies the time at which the Capacity Reservation resource was created.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualMachinesAssociated property: A list of all virtual machine resource ids that are associated with the capacity reservation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CapacityReservationProperties
public CapacityReservationProperties()Creates an instance of CapacityReservationProperties class.
-
-
Method Details
-
reservationId
Get the reservationId property: A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.- Returns:
- the reservationId value.
-
platformFaultDomainCount
Get the platformFaultDomainCount property: Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. **Note:** The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01.- Returns:
- the platformFaultDomainCount value.
-
virtualMachinesAssociated
Get the virtualMachinesAssociated property: A list of all virtual machine resource ids that are associated with the capacity reservation.- Returns:
- the virtualMachinesAssociated value.
-
provisioningTime
Get the provisioningTime property: The date time when the capacity reservation was last updated.- Returns:
- the provisioningTime value.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
Get the instanceView property: The Capacity reservation instance view.- Returns:
- the instanceView value.
-
timeCreated
Get the timeCreated property: Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.- Returns:
- the timeCreated value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapacityReservationProperties>- Throws:
IOException
-
fromJson
public static CapacityReservationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CapacityReservationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapacityReservationProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the CapacityReservationProperties.
-