次の方法で共有


EncryptionPreferences Class

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

Implements

public final class EncryptionPreferences
implements JsonSerializable<EncryptionPreferences>

Preferences related to the Encryption.

Constructor Summary

Constructor Description
EncryptionPreferences()

Creates an instance of EncryptionPreferences class.

Method Summary

Modifier and Type Method and Description
DoubleEncryption doubleEncryption()

Get the doubleEncryption property: Defines secondary layer of software-based encryption enablement.

static EncryptionPreferences fromJson(JsonReader jsonReader)

Reads an instance of EncryptionPreferences from the JsonReader.

HardwareEncryption hardwareEncryption()

Get the hardwareEncryption property: Defines Hardware level encryption (Only for disk).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionPreferences withDoubleEncryption(DoubleEncryption doubleEncryption)

Set the doubleEncryption property: Defines secondary layer of software-based encryption enablement.

EncryptionPreferences withHardwareEncryption(HardwareEncryption hardwareEncryption)

Set the hardwareEncryption property: Defines Hardware level encryption (Only for disk).

Methods inherited from java.lang.Object

Constructor Details

EncryptionPreferences

public EncryptionPreferences()

Creates an instance of EncryptionPreferences class.

Method Details

doubleEncryption

public DoubleEncryption doubleEncryption()

Get the doubleEncryption property: Defines secondary layer of software-based encryption enablement.

Returns:

the doubleEncryption value.

fromJson

public static EncryptionPreferences fromJson(JsonReader jsonReader)

Reads an instance of EncryptionPreferences from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hardwareEncryption

public HardwareEncryption hardwareEncryption()

Get the hardwareEncryption property: Defines Hardware level encryption (Only for disk).

Returns:

the hardwareEncryption value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDoubleEncryption

public EncryptionPreferences withDoubleEncryption(DoubleEncryption doubleEncryption)

Set the doubleEncryption property: Defines secondary layer of software-based encryption enablement.

Parameters:

doubleEncryption - the doubleEncryption value to set.

Returns:

the EncryptionPreferences object itself.

withHardwareEncryption

public EncryptionPreferences withHardwareEncryption(HardwareEncryption hardwareEncryption)

Set the hardwareEncryption property: Defines Hardware level encryption (Only for disk).

Parameters:

hardwareEncryption - the hardwareEncryption value to set.

Returns:

the EncryptionPreferences object itself.

Applies to