Class GalleryImageVersionStorageProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile
-
public final class GalleryImageVersionStorageProfile extends Object
This is the storage profile of a Gallery Image Version.
-
-
Constructor Summary
Constructors Constructor Description GalleryImageVersionStorageProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<GalleryDataDiskImage>dataDiskImages()Get the dataDiskImages property: A list of data disk images.GalleryOSDiskImageosDiskImage()Get the osDiskImage property: This is the OS disk image.GalleryArtifactVersionSourcesource()Get the source property: The gallery artifact version source.voidvalidate()Validates the instance.GalleryImageVersionStorageProfilewithDataDiskImages(List<GalleryDataDiskImage> dataDiskImages)Set the dataDiskImages property: A list of data disk images.GalleryImageVersionStorageProfilewithOsDiskImage(GalleryOSDiskImage osDiskImage)Set the osDiskImage property: This is the OS disk image.GalleryImageVersionStorageProfilewithSource(GalleryArtifactVersionSource source)Set the source property: The gallery artifact version source.
-
-
-
Method Detail
-
source
public GalleryArtifactVersionSource source()
Get the source property: The gallery artifact version source.- Returns:
- the source value.
-
withSource
public GalleryImageVersionStorageProfile withSource(GalleryArtifactVersionSource source)
Set the source property: The gallery artifact version source.- Parameters:
source- the source value to set.- Returns:
- the GalleryImageVersionStorageProfile object itself.
-
osDiskImage
public GalleryOSDiskImage osDiskImage()
Get the osDiskImage property: This is the OS disk image.- Returns:
- the osDiskImage value.
-
withOsDiskImage
public GalleryImageVersionStorageProfile withOsDiskImage(GalleryOSDiskImage osDiskImage)
Set the osDiskImage property: This is the OS disk image.- Parameters:
osDiskImage- the osDiskImage value to set.- Returns:
- the GalleryImageVersionStorageProfile object itself.
-
dataDiskImages
public List<GalleryDataDiskImage> dataDiskImages()
Get the dataDiskImages property: A list of data disk images.- Returns:
- the dataDiskImages value.
-
withDataDiskImages
public GalleryImageVersionStorageProfile withDataDiskImages(List<GalleryDataDiskImage> dataDiskImages)
Set the dataDiskImages property: A list of data disk images.- Parameters:
dataDiskImages- the dataDiskImages value to set.- Returns:
- the GalleryImageVersionStorageProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-