Disk Class

  • java.lang.Object
    • com.azure.resourcemanager.largeinstance.models.Disk

Implements

public final class Disk
implements JsonSerializable<Disk>

Specifies the disk information fo the Azure Large Instance.

Constructor Summary

Constructor Description
Disk()

Creates an instance of Disk class.

Method Summary

Modifier and Type Method and Description
Integer diskSizeGB()

Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.

static Disk fromJson(JsonReader jsonReader)

Reads an instance of Disk from the JsonReader.

Integer lun()

Get the lun property: Specifies the logical unit number of the data disk.

String name()

Get the name property: The disk name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Disk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.

Disk withName(String name)

Set the name property: The disk name.

Methods inherited from java.lang.Object

Constructor Details

Disk

public Disk()

Creates an instance of Disk class.

Method Details

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.

Returns:

the diskSizeGB value.

fromJson

public static Disk fromJson(JsonReader jsonReader)

Reads an instance of Disk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lun

public Integer lun()

Get the lun property: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.

Returns:

the lun value.

name

public String name()

Get the name property: The disk name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiskSizeGB

public Disk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.

Parameters:

diskSizeGB - the diskSizeGB value to set.

Returns:

the Disk object itself.

withName

public Disk withName(String name)

Set the name property: The disk name.

Parameters:

name - the name value to set.

Returns:

the Disk object itself.

Applies to