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.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DedicatedHostInstanceViewWithName class. -
Method Summary
Modifier and TypeMethodDescriptionassetId()Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity) Set the availableCapacity property: Unutilized capacity of the dedicated host.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.Methods inherited from class com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
availableCapacity, statusesMethods 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
-
DedicatedHostInstanceViewWithName
public DedicatedHostInstanceViewWithName()Creates an instance of DedicatedHostInstanceViewWithName class.
-
-
Method Details
-
name
Get the name property: The name of the dedicated host.- Returns:
- the name 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.
-
withAvailableCapacity
public DedicatedHostInstanceViewWithName withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity) Set the availableCapacity property: Unutilized capacity of the dedicated host.- Overrides:
withAvailableCapacityin classDedicatedHostInstanceView- Parameters:
availableCapacity- the availableCapacity value to set.- Returns:
- the DedicatedHostInstanceView object itself.
-
withStatuses
Set the statuses property: The resource status information.- Overrides:
withStatusesin classDedicatedHostInstanceView- Parameters:
statuses- the statuses value to set.- Returns:
- the DedicatedHostInstanceView object itself.
-
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.
-