Share via


DiskSecret Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.DiskSecret

Implements

public final class DiskSecret
implements JsonSerializable<DiskSecret>

Contains all the secrets of a Disk.

Constructor Summary

Constructor Description
DiskSecret()

Creates an instance of DiskSecret class.

Method Summary

Modifier and Type Method and Description
String bitLockerKey()

Get the bitLockerKey property: Bit Locker key of the disk which can be used to unlock the disk to copy data.

String diskSerialNumber()

Get the diskSerialNumber property: Serial number of the assigned disk.

static DiskSecret fromJson(JsonReader jsonReader)

Reads an instance of DiskSecret from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DiskSecret

public DiskSecret()

Creates an instance of DiskSecret class.

Method Details

bitLockerKey

public String bitLockerKey()

Get the bitLockerKey property: Bit Locker key of the disk which can be used to unlock the disk to copy data.

Returns:

the bitLockerKey value.

diskSerialNumber

public String diskSerialNumber()

Get the diskSerialNumber property: Serial number of the assigned disk.

Returns:

the diskSerialNumber value.

fromJson

public static DiskSecret fromJson(JsonReader jsonReader)

Reads an instance of DiskSecret from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to