Delen via


SharedGalleryDiskImage Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SharedGalleryDiskImage

Implements

public class SharedGalleryDiskImage
implements JsonSerializable<SharedGalleryDiskImage>

This is the disk image base class.

Constructor Summary

Constructor Description
SharedGalleryDiskImage()

Creates an instance of SharedGalleryDiskImage class.

Method Summary

Modifier and Type Method and Description
Integer diskSizeGB()

Get the diskSizeGB property: This property indicates the size of the VHD to be created.

static SharedGalleryDiskImage fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryDiskImage from the JsonReader.

SharedGalleryHostCaching hostCaching()

Get the hostCaching property: The host caching of the disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharedGalleryDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)

Set the hostCaching property: The host caching of the disk.

Methods inherited from java.lang.Object

Constructor Details

SharedGalleryDiskImage

public SharedGalleryDiskImage()

Creates an instance of SharedGalleryDiskImage class.

Method Details

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB property: This property indicates the size of the VHD to be created.

Returns:

the diskSizeGB value.

fromJson

public static SharedGalleryDiskImage fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryDiskImage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SharedGalleryDiskImage 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 SharedGalleryDiskImage.

hostCaching

public SharedGalleryHostCaching hostCaching()

Get the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.

Returns:

the hostCaching value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHostCaching

public SharedGalleryDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)

Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.

Parameters:

hostCaching - the hostCaching value to set.

Returns:

the SharedGalleryDiskImage object itself.

Applies to