GalleryDataDiskImage Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryDiskImage - com.
azure. resourcemanager. compute. models. GalleryDataDiskImage
- com.
- com.
public final class GalleryDataDiskImage
extends GalleryDiskImage
This is the data disk image.
Constructor Summary
Constructor | Description |
---|---|
GalleryDataDiskImage() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
lun()
Get the lun property: This property specifies the logical unit number of the data disk. |
void |
validate()
Validates the instance. |
Gallery |
withHostCaching(HostCaching hostCaching)
Set the host |
Gallery |
withLun(int lun)
Set the lun property: This property specifies the logical unit number of the data disk. |
Gallery |
withSource(GalleryDiskImageSource source)
Set the source property: The source for the disk image. |
Methods inherited from GalleryDiskImage
Methods inherited from java.lang.Object
Constructor Details
GalleryDataDiskImage
public GalleryDataDiskImage()
Creates an instance of GalleryDataDiskImage class.
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:
validate
public void validate()
Validates the instance.
Overrides:
GalleryDataDiskImage.validate()withHostCaching
public GalleryDataDiskImage withHostCaching(HostCaching hostCaching)
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
Overrides:
GalleryDataDiskImage.withHostCaching(HostCaching hostCaching)Parameters:
withLun
public GalleryDataDiskImage withLun(int lun)
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:
Returns:
withSource
public GalleryDataDiskImage withSource(GalleryDiskImageSource source)
Set the source property: The source for the disk image.
Overrides:
GalleryDataDiskImage.withSource(GalleryDiskImageSource source)Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for