java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.OsDisk

public final class OsDisk extends Object
Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
  • Constructor Details

    • OsDisk

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

    • osType

      public OperatingSystemTypes osType()
      Get the osType property: The OS type.
      Returns:
      the osType value.
    • withOsType

      public OsDisk withOsType(OperatingSystemTypes osType)
      Set the osType property: The OS type.
      Parameters:
      osType - the osType value to set.
      Returns:
      the OsDisk object itself.
    • name

      public String name()
      Get the name property: The VHD name.
      Returns:
      the name value.
    • withName

      public OsDisk withName(String name)
      Set the name property: The VHD name.
      Parameters:
      name - the name value to set.
      Returns:
      the OsDisk object itself.
    • vhd

      public VirtualHardDisk vhd()
      Get the vhd property: The virtual hard disk.
      Returns:
      the vhd value.
    • withVhd

      public OsDisk withVhd(VirtualHardDisk vhd)
      Set the vhd property: The virtual hard disk.
      Parameters:
      vhd - the vhd value to set.
      Returns:
      the OsDisk object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get the diskSizeGB property: Specifies the size of os disk in gigabytes. This is the fully expanded disk size needed of the VHD image on the ASE. This disk size should be greater than the size of the VHD provided in vhdUri.
      Returns:
      the diskSizeGB value.
    • withDiskSizeGB

      public OsDisk withDiskSizeGB(Integer diskSizeGB)
      Set the diskSizeGB property: Specifies the size of os disk in gigabytes. This is the fully expanded disk size needed of the VHD image on the ASE. This disk size should be greater than the size of the VHD provided in vhdUri.
      Parameters:
      diskSizeGB - the diskSizeGB value to set.
      Returns:
      the OsDisk object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.