Class GalleryImageVersionStorageProfile
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryImageVersionStorageProfile>
public final class GalleryImageVersionStorageProfile
extends Object
implements com.azure.json.JsonSerializable<GalleryImageVersionStorageProfile>
This is the storage profile of a Gallery Image Version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryImageVersionStorageProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDiskImages property: A list of data disk images.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryImageVersionStorageProfile from the JsonReader.Get the osDiskImage property: This is the OS disk image.source()Get the source property: The source of the gallery artifact version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDataDiskImages(List<GalleryDataDiskImage> dataDiskImages) Set the dataDiskImages property: A list of data disk images.withOsDiskImage(GalleryOSDiskImage osDiskImage) Set the osDiskImage property: This is the OS disk image.Set the source property: The source of the gallery artifact version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GalleryImageVersionStorageProfile
public GalleryImageVersionStorageProfile()Creates an instance of GalleryImageVersionStorageProfile class.
-
-
Method Details
-
source
Get the source property: The source of the gallery artifact version.- Returns:
- the source value.
-
withSource
Set the source property: The source of the gallery artifact version.- Parameters:
source- the source value to set.- Returns:
- the GalleryImageVersionStorageProfile object itself.
-
osDiskImage
Get the osDiskImage property: This is the OS disk image.- Returns:
- the osDiskImage value.
-
withOsDiskImage
Set the osDiskImage property: This is the OS disk image.- Parameters:
osDiskImage- the osDiskImage value to set.- Returns:
- the GalleryImageVersionStorageProfile object itself.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryImageVersionStorageProfile>- Throws:
IOException
-
fromJson
public static GalleryImageVersionStorageProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryImageVersionStorageProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryImageVersionStorageProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the GalleryImageVersionStorageProfile.
-