Class DedicatedHostInstanceView

java.lang.Object
com.azure.resourcemanager.compute.models.DedicatedHostInstanceView
All Implemented Interfaces:
com.azure.json.JsonSerializable<DedicatedHostInstanceView>
Direct Known Subclasses:
DedicatedHostInstanceViewWithName

public class DedicatedHostInstanceView extends Object implements com.azure.json.JsonSerializable<DedicatedHostInstanceView>
The instance view of a dedicated host.
  • Constructor Details

    • DedicatedHostInstanceView

      public DedicatedHostInstanceView()
      Creates an instance of DedicatedHostInstanceView class.
  • Method Details

    • assetId

      public String assetId()
      Get the assetId property: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
      Returns:
      the assetId value.
    • availableCapacity

      public DedicatedHostAvailableCapacity availableCapacity()
      Get the availableCapacity property: Unutilized capacity of the dedicated host.
      Returns:
      the availableCapacity value.
    • withAvailableCapacity

      public DedicatedHostInstanceView withAvailableCapacity(DedicatedHostAvailableCapacity availableCapacity)
      Set the availableCapacity property: Unutilized capacity of the dedicated host.
      Parameters:
      availableCapacity - the availableCapacity value to set.
      Returns:
      the DedicatedHostInstanceView object itself.
    • statuses

      public List<InstanceViewStatus> statuses()
      Get the statuses property: The resource status information.
      Returns:
      the statuses value.
    • withStatuses

      public DedicatedHostInstanceView withStatuses(List<InstanceViewStatus> statuses)
      Set the statuses property: The resource status information.
      Parameters:
      statuses - the statuses value to set.
      Returns:
      the DedicatedHostInstanceView 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<DedicatedHostInstanceView>
      Throws:
      IOException
    • fromJson

      public static DedicatedHostInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DedicatedHostInstanceView from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DedicatedHostInstanceView 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 DedicatedHostInstanceView.