VirtualDisk Class

  • java.lang.Object
    • com.azure.resourcemanager.vmwarecloudsimple.models.VirtualDisk

Implements

public final class VirtualDisk
implements JsonSerializable<VirtualDisk>

Virtual disk model.

Constructor Summary

Constructor Description
VirtualDisk()

Creates an instance of VirtualDisk class.

Method Summary

Modifier and Type Method and Description
String controllerId()

Get the controllerId property: Disk's Controller id.

static VirtualDisk fromJson(JsonReader jsonReader)

Reads an instance of VirtualDisk from the JsonReader.

DiskIndependenceMode independenceMode()

Get the independenceMode property: Disk's independence mode type.

JsonWriter toJson(JsonWriter jsonWriter)
int totalSize()

Get the totalSize property: Disk's total size.

void validate()

Validates the instance.

String virtualDiskId()

Get the virtualDiskId property: Disk's id.

String virtualDiskName()

Get the virtualDiskName property: Disk's display name.

VirtualDisk withControllerId(String controllerId)

Set the controllerId property: Disk's Controller id.

VirtualDisk withIndependenceMode(DiskIndependenceMode independenceMode)

Set the independenceMode property: Disk's independence mode type.

VirtualDisk withTotalSize(int totalSize)

Set the totalSize property: Disk's total size.

VirtualDisk withVirtualDiskId(String virtualDiskId)

Set the virtualDiskId property: Disk's id.

Methods inherited from java.lang.Object

Constructor Details

VirtualDisk

public VirtualDisk()

Creates an instance of VirtualDisk class.

Method Details

controllerId

public String controllerId()

Get the controllerId property: Disk's Controller id.

Returns:

the controllerId value.

fromJson

public static VirtualDisk fromJson(JsonReader jsonReader)

Reads an instance of VirtualDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualDisk if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

independenceMode

public DiskIndependenceMode independenceMode()

Get the independenceMode property: Disk's independence mode type.

Returns:

the independenceMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalSize

public int totalSize()

Get the totalSize property: Disk's total size.

Returns:

the totalSize value.

validate

public void validate()

Validates the instance.

virtualDiskId

public String virtualDiskId()

Get the virtualDiskId property: Disk's id.

Returns:

the virtualDiskId value.

virtualDiskName

public String virtualDiskName()

Get the virtualDiskName property: Disk's display name.

Returns:

the virtualDiskName value.

withControllerId

public VirtualDisk withControllerId(String controllerId)

Set the controllerId property: Disk's Controller id.

Parameters:

controllerId - the controllerId value to set.

Returns:

the VirtualDisk object itself.

withIndependenceMode

public VirtualDisk withIndependenceMode(DiskIndependenceMode independenceMode)

Set the independenceMode property: Disk's independence mode type.

Parameters:

independenceMode - the independenceMode value to set.

Returns:

the VirtualDisk object itself.

withTotalSize

public VirtualDisk withTotalSize(int totalSize)

Set the totalSize property: Disk's total size.

Parameters:

totalSize - the totalSize value to set.

Returns:

the VirtualDisk object itself.

withVirtualDiskId

public VirtualDisk withVirtualDiskId(String virtualDiskId)

Set the virtualDiskId property: Disk's id.

Parameters:

virtualDiskId - the virtualDiskId value to set.

Returns:

the VirtualDisk object itself.

Applies to