VirtualHardDisk Class

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

Implements

public final class VirtualHardDisk
implements JsonSerializable<VirtualHardDisk>

Describes the uri of a disk.

Constructor Summary

Constructor Description
VirtualHardDisk()

Creates an instance of VirtualHardDisk class.

Method Summary

Modifier and Type Method and Description
static VirtualHardDisk fromJson(JsonReader jsonReader)

Reads an instance of VirtualHardDisk from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: Specifies the virtual hard disk's uri.

void validate()

Validates the instance.

VirtualHardDisk withUri(String uri)

Set the uri property: Specifies the virtual hard disk's uri.

Methods inherited from java.lang.Object

Constructor Details

VirtualHardDisk

public VirtualHardDisk()

Creates an instance of VirtualHardDisk class.

Method Details

fromJson

public static VirtualHardDisk fromJson(JsonReader jsonReader)

Reads an instance of VirtualHardDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uri

public String uri()

Get the uri property: Specifies the virtual hard disk's uri.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withUri

public VirtualHardDisk withUri(String uri)

Set the uri property: Specifies the virtual hard disk's uri.

Parameters:

uri - the uri value to set.

Returns:

the VirtualHardDisk object itself.

Applies to