Class SharedGalleryDiskImage
java.lang.Object
com.azure.resourcemanager.compute.models.SharedGalleryDiskImage
- Direct Known Subclasses:
SharedGalleryDataDiskImage,SharedGalleryOSDiskImage
This is the disk image base class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the diskSizeGB property: This property indicates the size of the VHD to be created.Get the hostCaching property: The host caching of the disk.voidvalidate()Validates the instance.withHostCaching(SharedGalleryHostCaching hostCaching) Set the hostCaching property: The host caching of the disk.
-
Constructor Details
-
SharedGalleryDiskImage
public SharedGalleryDiskImage()
-
-
Method Details
-
diskSizeGB
Get the diskSizeGB property: This property indicates the size of the VHD to be created.- Returns:
- the diskSizeGB value.
-
hostCaching
Get the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.- Returns:
- the hostCaching value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-