Class DataDisk
java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.DataDisk
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 createOption property: Specifies how the virtual machine should be created.Get the diskSizeGB property: Specifies the size of an empty disk in gigabytes.name()
Get the name property: The name of data disk.void
validate()
Validates the instance.withCreateOption
(DiskCreateOptionTypes createOption) Set the createOption property: Specifies how the virtual machine should be created.withDiskSizeGB
(Integer diskSizeGB) Set the diskSizeGB property: Specifies the size of an empty disk in gigabytes.Set the name property: The name of data disk.
-
Constructor Details
-
DataDisk
public DataDisk()Creates an instance of DataDisk class.
-
-
Method Details
-
createOption
Get the createOption property: Specifies how the virtual machine should be created.- Returns:
- the createOption value.
-
withCreateOption
Set the createOption property: Specifies how the virtual machine should be created.- Parameters:
createOption
- the createOption value to set.- Returns:
- the DataDisk object itself.
-
name
Get the name property: The name of data disk.- Returns:
- the name value.
-
withName
Set the name property: The name of data disk.- Parameters:
name
- the name value to set.- Returns:
- the DataDisk object itself.
-
diskSizeGB
Get the diskSizeGB property: Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.- Parameters:
diskSizeGB
- the diskSizeGB value to set.- Returns:
- the DataDisk object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-