Class DedicatedHostAllocatableVM
java.lang.Object
com.azure.resourcemanager.compute.models.DedicatedHostAllocatableVM
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DedicatedHostAllocatableVM>
public final class DedicatedHostAllocatableVM
extends Object
implements com.azure.json.JsonSerializable<DedicatedHostAllocatableVM>
Represents the dedicated host unutilized capacity in terms of a specific VM size.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DedicatedHostAllocatableVM class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.static DedicatedHostAllocatableVMfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DedicatedHostAllocatableVM from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vmSize()Get the vmSize property: VM size in terms of which the unutilized capacity is represented.Set the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.withVmSize(String vmSize) Set the vmSize property: VM size in terms of which the unutilized capacity is represented.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
-
DedicatedHostAllocatableVM
public DedicatedHostAllocatableVM()Creates an instance of DedicatedHostAllocatableVM class.
-
-
Method Details
-
vmSize
Get the vmSize property: VM size in terms of which the unutilized capacity is represented.- Returns:
- the vmSize value.
-
withVmSize
Set the vmSize property: VM size in terms of which the unutilized capacity is represented.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the DedicatedHostAllocatableVM object itself.
-
count
Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.- Returns:
- the count value.
-
withCount
Set the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.- Parameters:
count- the count value to set.- Returns:
- the DedicatedHostAllocatableVM 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<DedicatedHostAllocatableVM>- Throws:
IOException
-
fromJson
public static DedicatedHostAllocatableVM fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DedicatedHostAllocatableVM from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DedicatedHostAllocatableVM 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 DedicatedHostAllocatableVM.
-