Class GalleryDataDiskImage
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryDiskImage
com.azure.resourcemanager.compute.models.GalleryDataDiskImage
This is the data disk image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlun()Get the lun property: This property specifies the logical unit number of the data disk.voidvalidate()Validates the instance.withHostCaching(HostCaching hostCaching) Set the hostCaching property: The host caching of the disk.withLun(int lun) Set the lun property: This property specifies the logical unit number of the data disk.Set the source property: The gallery artifact version source.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryDiskImage
hostCaching, sizeInGB, source
-
Constructor Details
-
GalleryDataDiskImage
public GalleryDataDiskImage()
-
-
Method Details
-
lun
public int lun()Get the lun property: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.- Returns:
- the lun value.
-
withLun
Set the lun property: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.- Parameters:
lun- the lun value to set.- Returns:
- the GalleryDataDiskImage object itself.
-
withHostCaching
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.- Overrides:
withHostCachingin classGalleryDiskImage- Parameters:
hostCaching- the hostCaching value to set.- Returns:
- the GalleryDiskImage object itself.
-
withSource
Set the source property: The gallery artifact version source.- Overrides:
withSourcein classGalleryDiskImage- Parameters:
source- the source value to set.- Returns:
- the GalleryDiskImage object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGalleryDiskImage- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-