VirtualDiskUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.VirtualDiskUpdate

Implements

public final class VirtualDiskUpdate
implements JsonSerializable<VirtualDiskUpdate>

Virtual Disk Update model.

Constructor Summary

Constructor Description
VirtualDiskUpdate()

Creates an instance of VirtualDiskUpdate class.

Method Summary

Modifier and Type Method and Description
Integer bus()

Get the bus property: Gets or sets the disk bus.

String busType()

Get the busType property: Gets or sets the disk bus type.

String diskId()

Get the diskId property: Gets or sets the disk id.

Integer diskSizeGB()

Get the diskSizeGB property: Gets or sets the disk total size.

static VirtualDiskUpdate fromJson(JsonReader jsonReader)

Reads an instance of VirtualDiskUpdate from the JsonReader.

Integer lun()

Get the lun property: Gets or sets the disk lun.

String name()

Get the name property: Gets or sets the name of the disk.

StorageQosPolicyDetails storageQosPolicy()

Get the storageQosPolicy property: The QoS policy for the disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vhdType()

Get the vhdType property: Gets or sets the disk vhd type.

VirtualDiskUpdate withBus(Integer bus)

Set the bus property: Gets or sets the disk bus.

VirtualDiskUpdate withBusType(String busType)

Set the busType property: Gets or sets the disk bus type.

VirtualDiskUpdate withDiskId(String diskId)

Set the diskId property: Gets or sets the disk id.

VirtualDiskUpdate withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB property: Gets or sets the disk total size.

VirtualDiskUpdate withLun(Integer lun)

Set the lun property: Gets or sets the disk lun.

VirtualDiskUpdate withName(String name)

Set the name property: Gets or sets the name of the disk.

VirtualDiskUpdate withStorageQosPolicy(StorageQosPolicyDetails storageQosPolicy)

Set the storageQosPolicy property: The QoS policy for the disk.

VirtualDiskUpdate withVhdType(String vhdType)

Set the vhdType property: Gets or sets the disk vhd type.

Methods inherited from java.lang.Object

Constructor Details

VirtualDiskUpdate

public VirtualDiskUpdate()

Creates an instance of VirtualDiskUpdate class.

Method Details

bus

public Integer bus()

Get the bus property: Gets or sets the disk bus.

Returns:

the bus value.

busType

public String busType()

Get the busType property: Gets or sets the disk bus type.

Returns:

the busType value.

diskId

public String diskId()

Get the diskId property: Gets or sets the disk id.

Returns:

the diskId value.

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB property: Gets or sets the disk total size.

Returns:

the diskSizeGB value.

fromJson

public static VirtualDiskUpdate fromJson(JsonReader jsonReader)

Reads an instance of VirtualDiskUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lun

public Integer lun()

Get the lun property: Gets or sets the disk lun.

Returns:

the lun value.

name

public String name()

Get the name property: Gets or sets the name of the disk.

Returns:

the name value.

storageQosPolicy

public StorageQosPolicyDetails storageQosPolicy()

Get the storageQosPolicy property: The QoS policy for the disk.

Returns:

the storageQosPolicy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vhdType

public String vhdType()

Get the vhdType property: Gets or sets the disk vhd type.

Returns:

the vhdType value.

withBus

public VirtualDiskUpdate withBus(Integer bus)

Set the bus property: Gets or sets the disk bus.

Parameters:

bus - the bus value to set.

Returns:

the VirtualDiskUpdate object itself.

withBusType

public VirtualDiskUpdate withBusType(String busType)

Set the busType property: Gets or sets the disk bus type.

Parameters:

busType - the busType value to set.

Returns:

the VirtualDiskUpdate object itself.

withDiskId

public VirtualDiskUpdate withDiskId(String diskId)

Set the diskId property: Gets or sets the disk id.

Parameters:

diskId - the diskId value to set.

Returns:

the VirtualDiskUpdate object itself.

withDiskSizeGB

public VirtualDiskUpdate withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB property: Gets or sets the disk total size.

Parameters:

diskSizeGB - the diskSizeGB value to set.

Returns:

the VirtualDiskUpdate object itself.

withLun

public VirtualDiskUpdate withLun(Integer lun)

Set the lun property: Gets or sets the disk lun.

Parameters:

lun - the lun value to set.

Returns:

the VirtualDiskUpdate object itself.

withName

public VirtualDiskUpdate withName(String name)

Set the name property: Gets or sets the name of the disk.

Parameters:

name - the name value to set.

Returns:

the VirtualDiskUpdate object itself.

withStorageQosPolicy

public VirtualDiskUpdate withStorageQosPolicy(StorageQosPolicyDetails storageQosPolicy)

Set the storageQosPolicy property: The QoS policy for the disk.

Parameters:

storageQosPolicy - the storageQosPolicy value to set.

Returns:

the VirtualDiskUpdate object itself.

withVhdType

public VirtualDiskUpdate withVhdType(String vhdType)

Set the vhdType property: Gets or sets the disk vhd type.

Parameters:

vhdType - the vhdType value to set.

Returns:

the VirtualDiskUpdate object itself.

Applies to