Class DedicatedHostGroupInstanceView
java.lang.Object
com.azure.resourcemanager.compute.models.DedicatedHostGroupInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DedicatedHostGroupInstanceView>
public final class DedicatedHostGroupInstanceView
extends Object
implements com.azure.json.JsonSerializable<DedicatedHostGroupInstanceView>
The DedicatedHostGroupInstanceView model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DedicatedHostGroupInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DedicatedHostGroupInstanceView from the JsonReader.hosts()Get the hosts property: List of instance view of the dedicated hosts under the dedicated host group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the hosts property: List of instance view of the dedicated hosts under the dedicated host group.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
-
DedicatedHostGroupInstanceView
public DedicatedHostGroupInstanceView()Creates an instance of DedicatedHostGroupInstanceView class.
-
-
Method Details
-
hosts
Get the hosts property: List of instance view of the dedicated hosts under the dedicated host group.- Returns:
- the hosts value.
-
withHosts
Set the hosts property: List of instance view of the dedicated hosts under the dedicated host group.- Parameters:
hosts- the hosts value to set.- Returns:
- the DedicatedHostGroupInstanceView object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DedicatedHostGroupInstanceView>- Throws:
IOException
-
fromJson
public static DedicatedHostGroupInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DedicatedHostGroupInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DedicatedHostGroupInstanceView 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 DedicatedHostGroupInstanceView.
-