Class SharedGalleryOSDiskImage
java.lang.Object
com.azure.resourcemanager.compute.models.SharedGalleryDiskImage
com.azure.resourcemanager.compute.models.SharedGalleryOSDiskImage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SharedGalleryDiskImage>
This is the OS disk image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SharedGalleryOSDiskImage class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diskSizeGB property: This property indicates the size of the VHD to be created.static SharedGalleryOSDiskImagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharedGalleryOSDiskImage from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHostCaching(SharedGalleryHostCaching hostCaching) Set the hostCaching property: The host caching of the disk.Methods inherited from class SharedGalleryDiskImage
hostCachingMethods inherited from class 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
-
SharedGalleryOSDiskImage
public SharedGalleryOSDiskImage()Creates an instance of SharedGalleryOSDiskImage class.
-
-
Method Details
-
diskSizeGB
Get the diskSizeGB property: This property indicates the size of the VHD to be created.- Overrides:
diskSizeGBin classSharedGalleryDiskImage- Returns:
- the diskSizeGB value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSharedGalleryDiskImage- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SharedGalleryDiskImage>- Overrides:
toJsonin classSharedGalleryDiskImage- Throws:
IOException
-
fromJson
public static SharedGalleryOSDiskImage fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SharedGalleryOSDiskImage from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SharedGalleryOSDiskImage 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 SharedGalleryOSDiskImage.
-