Class GalleryOSDiskImage
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.GalleryDiskImage
-
- com.azure.resourcemanager.compute.models.GalleryOSDiskImage
-
public final class GalleryOSDiskImage extends GalleryDiskImage
This is the OS disk image.
-
-
Constructor Summary
Constructors Constructor Description GalleryOSDiskImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.GalleryOSDiskImagewithHostCaching(HostCaching hostCaching)Set the hostCaching property: The host caching of the disk.GalleryOSDiskImagewithSource(GalleryArtifactVersionSource source)Set the source property: The gallery artifact version source.-
Methods inherited from class com.azure.resourcemanager.compute.models.GalleryDiskImage
hostCaching, sizeInGB, source
-
-
-
-
Method Detail
-
withHostCaching
public GalleryOSDiskImage withHostCaching(HostCaching hostCaching)
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
public GalleryOSDiskImage withSource(GalleryArtifactVersionSource source)
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.
-
-