Lezen in het Engels

Delen via


DataDisksToDetach Class

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

Implements

public final class DataDisksToDetach
implements JsonSerializable<DataDisksToDetach>

Describes the data disk to be detached.

Constructor Summary

Constructor Description
DataDisksToDetach()

Creates an instance of DataDisksToDetach class.

Method Summary

Modifier and Type Method and Description
DiskDetachOptionTypes detachOption()

Get the detachOption property: Supported options available for Detach of a disk from a VM.

String diskId()

Get the diskId property: ID of the managed data disk.

static DataDisksToDetach fromJson(JsonReader jsonReader)

Reads an instance of DataDisksToDetach from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataDisksToDetach withDetachOption(DiskDetachOptionTypes detachOption)

Set the detachOption property: Supported options available for Detach of a disk from a VM.

DataDisksToDetach withDiskId(String diskId)

Set the diskId property: ID of the managed data disk.

Methods inherited from java.lang.Object

Constructor Details

DataDisksToDetach

public DataDisksToDetach()

Creates an instance of DataDisksToDetach class.

Method Details

detachOption

public DiskDetachOptionTypes detachOption()

Get the detachOption property: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details.

Returns:

the detachOption value.

diskId

public String diskId()

Get the diskId property: ID of the managed data disk.

Returns:

the diskId value.

fromJson

public static DataDisksToDetach fromJson(JsonReader jsonReader)

Reads an instance of DataDisksToDetach from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDetachOption

public DataDisksToDetach withDetachOption(DiskDetachOptionTypes detachOption)

Set the detachOption property: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details.

Parameters:

detachOption - the detachOption value to set.

Returns:

the DataDisksToDetach object itself.

withDiskId

public DataDisksToDetach withDiskId(String diskId)

Set the diskId property: ID of the managed data disk.

Parameters:

diskId - the diskId value to set.

Returns:

the DataDisksToDetach object itself.

Applies to

Azure SDK for Java

Latest