AttachDiskProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.AttachDiskProperties

Implements

public final class AttachDiskProperties
implements JsonSerializable<AttachDiskProperties>

Properties of the disk to attach.

Constructor Summary

Constructor Description
AttachDiskProperties()

Creates an instance of AttachDiskProperties class.

Method Summary

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

Reads an instance of AttachDiskProperties from the JsonReader.

String leasedByLabVmId()

Get the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.

JsonWriter toJson(JsonWriter jsonWriter)
AttachDiskProperties withLeasedByLabVmId(String leasedByLabVmId)

Set the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.

Methods inherited from java.lang.Object

Constructor Details

AttachDiskProperties

public AttachDiskProperties()

Creates an instance of AttachDiskProperties class.

Method Details

fromJson

public static AttachDiskProperties fromJson(JsonReader jsonReader)

Reads an instance of AttachDiskProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

leasedByLabVmId

public String leasedByLabVmId()

Get the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.

Returns:

the leasedByLabVmId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withLeasedByLabVmId

public AttachDiskProperties withLeasedByLabVmId(String leasedByLabVmId)

Set the leasedByLabVmId property: The resource ID of the Lab virtual machine to which the disk is attached.

Parameters:

leasedByLabVmId - the leasedByLabVmId value to set.

Returns:

the AttachDiskProperties object itself.

Applies to