SharedGalleryOSDiskImage Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SharedGalleryDiskImage - com.
azure. resourcemanager. compute. models. SharedGalleryOSDiskImage
- com.
- com.
public final class SharedGalleryOSDiskImage
extends SharedGalleryDiskImage
This is the OS disk image.
Constructor Summary
Constructor | Description |
---|---|
SharedGalleryOSDiskImage() |
Creates an instance of Shared |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
diskSizeGB()
Get the disk |
static
Shared |
fromJson(JsonReader jsonReader)
Reads an instance of Shared |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Shared |
withHostCaching(SharedGalleryHostCaching hostCaching)
Set the host |
Methods inherited from SharedGalleryDiskImage
Methods inherited from java.lang.Object
Constructor Details
SharedGalleryOSDiskImage
public SharedGalleryOSDiskImage()
Creates an instance of SharedGalleryOSDiskImage class.
Method Details
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB property: This property indicates the size of the VHD to be created.
Overrides:
SharedGalleryOSDiskImage.diskSizeGB()Returns:
fromJson
public static SharedGalleryOSDiskImage fromJson(JsonReader jsonReader)
Reads an instance of SharedGalleryOSDiskImage from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SharedGalleryOSDiskImage.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
SharedGalleryOSDiskImage.validate()withHostCaching
public SharedGalleryOSDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
Overrides:
SharedGalleryOSDiskImage.withHostCaching(SharedGalleryHostCaching hostCaching)Parameters:
Applies to
Azure SDK for Java