Class DedicatedHostInstanceViewWithName
java.lang.Object
com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
com.azure.resourcemanager.compute.models.DedicatedHostInstanceViewWithName
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DedicatedHostInstanceView>
The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to
the instance view of a dedicated host group.
-
Method Summary
Modifier and TypeMethodDescriptionassetId()Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.Get the availableCapacity property: Unutilized capacity of the dedicated host.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DedicatedHostInstanceViewWithName from the JsonReader.name()Get the name property: The name of the dedicated host.statuses()Get the statuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 dedicated host.- Returns:
- the name value.
-
statuses
Get the statuses property: The resource status information.- Overrides:
statusesin classDedicatedHostInstanceView- Returns:
- the statuses value.
-
availableCapacity
Get the availableCapacity property: Unutilized capacity of the dedicated host.- Overrides:
availableCapacityin classDedicatedHostInstanceView- Returns:
- the availableCapacity value.
-
assetId
Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.- Overrides:
assetIdin classDedicatedHostInstanceView- Returns:
- the assetId value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDedicatedHostInstanceView- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DedicatedHostInstanceView>- Overrides:
toJsonin classDedicatedHostInstanceView- Throws:
IOException
-
fromJson
public static DedicatedHostInstanceViewWithName fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DedicatedHostInstanceViewWithName from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DedicatedHostInstanceViewWithName 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 DedicatedHostInstanceViewWithName.
-