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

    Constructors
    Constructor
    Description
    Creates an instance of DedicatedHostAllocatableVM class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the count property: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DedicatedHostAllocatableVM from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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.
    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, wait

    Methods 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

      public String vmSize()
      Get the vmSize property: VM size in terms of which the unutilized capacity is represented.
      Returns:
      the vmSize value.
    • withVmSize

      public DedicatedHostAllocatableVM withVmSize(String vmSize)
      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

      public Double 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

      public DedicatedHostAllocatableVM withCount(Double count)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.