GalleryDiskImage Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryDiskImage
- com.
Implements
public class GalleryDiskImage
implements JsonSerializable<GalleryDiskImage>
This is the disk image base class.
Constructor Summary
Constructor | Description |
---|---|
GalleryDiskImage() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
Host |
hostCaching()
Get the host |
Integer |
sizeInGB()
Get the size |
Gallery |
source()
Get the source property: The source for the disk image. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gallery |
withHostCaching(HostCaching hostCaching)
Set the host |
Gallery |
withSource(GalleryDiskImageSource source)
Set the source property: The source for the disk image. |
Methods inherited from java.lang.Object
Constructor Details
GalleryDiskImage
public GalleryDiskImage()
Creates an instance of GalleryDiskImage class.
Method Details
fromJson
public static GalleryDiskImage fromJson(JsonReader jsonReader)
Reads an instance of GalleryDiskImage from the JsonReader.
Parameters:
Returns:
Throws:
hostCaching
public HostCaching hostCaching()
Get the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
Returns:
sizeInGB
public Integer sizeInGB()
Get the sizeInGB property: This property indicates the size of the VHD to be created.
Returns:
source
public GalleryDiskImageSource source()
Get the source property: The source for the disk image.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHostCaching
public GalleryDiskImage withHostCaching(HostCaching hostCaching)
Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
Parameters:
Returns:
withSource
public GalleryDiskImage withSource(GalleryDiskImageSource source)
Set the source property: The source for the disk image.
Parameters:
Returns:
Applies to
Azure SDK for Java