Class CapacityReservationInstanceViewWithName
java.lang.Object
com.azure.resourcemanager.compute.models.CapacityReservationInstanceView
com.azure.resourcemanager.compute.models.CapacityReservationInstanceViewWithName
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapacityReservationInstanceView>
The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the
response to the instance view of a capacity reservation group.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapacityReservationInstanceViewWithName from the JsonReader.name()Get the name property: The name of the capacity reservation.statuses()Get the statuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the utilizationInfo property: Unutilized capacity of the capacity reservation.voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
name
Get the name property: The name of the capacity reservation.- Returns:
- the name value.
-
statuses
Get the statuses property: The resource status information.- Overrides:
statusesin classCapacityReservationInstanceView- Returns:
- the statuses value.
-
utilizationInfo
Get the utilizationInfo property: Unutilized capacity of the capacity reservation.- Overrides:
utilizationInfoin classCapacityReservationInstanceView- Returns:
- the utilizationInfo value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classCapacityReservationInstanceView- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapacityReservationInstanceView>- Overrides:
toJsonin classCapacityReservationInstanceView- Throws:
IOException
-
fromJson
public static CapacityReservationInstanceViewWithName fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CapacityReservationInstanceViewWithName from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapacityReservationInstanceViewWithName 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 CapacityReservationInstanceViewWithName.
-