SharedGalleryDataDiskImage Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SharedGalleryDiskImage - com.
azure. resourcemanager. compute. models. SharedGalleryDataDiskImage
- com.
- com.
public final class SharedGalleryDataDiskImage
extends SharedGalleryDiskImage
This is the data disk image.
Constructor Summary
Constructor | Description |
---|---|
SharedGalleryDataDiskImage() |
Creates an instance of Shared |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
diskSizeGB()
Get the disk |
static
Shared |
fromJson(JsonReader jsonReader)
Reads an instance of Shared |
int |
lun()
Get the lun property: This property specifies the logical unit number of the data disk. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Shared |
withHostCaching(SharedGalleryHostCaching hostCaching)
Set the host |
Shared |
withLun(int lun)
Set the lun property: This property specifies the logical unit number of the data disk. |
Methods inherited from SharedGalleryDiskImage
Methods inherited from java.lang.Object
Constructor Details
SharedGalleryDataDiskImage
public SharedGalleryDataDiskImage()
Creates an instance of SharedGalleryDataDiskImage class.
Method Details
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB property: This property indicates the size of the VHD to be created.
Overrides:
SharedGalleryDataDiskImage.diskSizeGB()Returns:
fromJson
public static SharedGalleryDataDiskImage fromJson(JsonReader jsonReader)
Reads an instance of SharedGalleryDataDiskImage from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SharedGalleryDataDiskImage.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
SharedGalleryDataDiskImage.validate()withHostCaching
public SharedGalleryDataDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
Overrides:
SharedGalleryDataDiskImage.withHostCaching(SharedGalleryHostCaching hostCaching)Parameters:
withLun
public SharedGalleryDataDiskImage 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:
Applies to
Azure SDK for Java