Class GalleryOSDiskImage
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryDiskImage
com.azure.resourcemanager.compute.models.GalleryOSDiskImage
This is the OS disk image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withHostCaching(HostCaching hostCaching) Set the hostCaching property: The host caching of the disk.withSource(GalleryDiskImageSource source) Set the source property: The source for the disk image.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryDiskImage
hostCaching, sizeInGB, source
-
Constructor Details
-
GalleryOSDiskImage
public GalleryOSDiskImage()Creates an instance of GalleryOSDiskImage class.
-
-
Method Details
-
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 source for the disk image.- 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.
-