Class OsDisk
java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.OsDisk
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the diskSizeGB property: Specifies the size of os disk in gigabytes.name()
Get the name property: The VHD name.osType()
Get the osType property: The OS type.void
validate()
Validates the instance.vhd()
Get the vhd property: The virtual hard disk.withDiskSizeGB
(Integer diskSizeGB) Set the diskSizeGB property: Specifies the size of os disk in gigabytes.Set the name property: The VHD name.withOsType
(OperatingSystemTypes osType) Set the osType property: The OS type.withVhd
(VirtualHardDisk vhd) Set the vhd property: The virtual hard disk.
-
Constructor Details
-
OsDisk
public OsDisk()Creates an instance of OsDisk class.
-
-
Method Details
-
osType
Get the osType property: The OS type.- Returns:
- the osType value.
-
withOsType
Set the osType property: The OS type.- Parameters:
osType
- the osType value to set.- Returns:
- the OsDisk object itself.
-
name
Get the name property: The VHD name.- Returns:
- the name value.
-
withName
Set the name property: The VHD name.- Parameters:
name
- the name value to set.- Returns:
- the OsDisk object itself.
-
vhd
Get the vhd property: The virtual hard disk.- Returns:
- the vhd value.
-
withVhd
Set the vhd property: The virtual hard disk.- Parameters:
vhd
- the vhd value to set.- Returns:
- the OsDisk object itself.
-
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
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.
-