Class GalleryDiskImage
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.GalleryDiskImage
-
- Direct Known Subclasses:
GalleryDataDiskImage,GalleryOSDiskImage
public class GalleryDiskImage extends Object
This is the disk image base class.
-
-
Constructor Summary
Constructors Constructor Description GalleryDiskImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostCachinghostCaching()Get the hostCaching property: The host caching of the disk.IntegersizeInGB()Get the sizeInGB property: This property indicates the size of the VHD to be created.GalleryArtifactVersionSourcesource()Get the source property: The gallery artifact version source.voidvalidate()Validates the instance.GalleryDiskImagewithHostCaching(HostCaching hostCaching)Set the hostCaching property: The host caching of the disk.GalleryDiskImagewithSource(GalleryArtifactVersionSource source)Set the source property: The gallery artifact version source.
-
-
-
Method Detail
-
sizeInGB
public Integer sizeInGB()
Get the sizeInGB property: This property indicates the size of the VHD to be created.- Returns:
- the sizeInGB value.
-
hostCaching
public HostCaching hostCaching()
Get the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.- Returns:
- the hostCaching value.
-
withHostCaching
public GalleryDiskImage withHostCaching(HostCaching hostCaching)
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.- Parameters:
hostCaching- the hostCaching value to set.- Returns:
- the GalleryDiskImage object itself.
-
source
public GalleryArtifactVersionSource source()
Get the source property: The gallery artifact version source.- Returns:
- the source value.
-
withSource
public GalleryDiskImage withSource(GalleryArtifactVersionSource source)
Set the source property: The gallery artifact version source.- Parameters:
source- the source value to set.- Returns:
- the GalleryDiskImage object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-