Share via


EncryptionSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.EncryptionSettings

Implements

public final class EncryptionSettings
implements JsonSerializable<EncryptionSettings>

Customer Managed Key details of the resource.

Constructor Summary

Constructor Description
EncryptionSettings()

Creates an instance of EncryptionSettings class.

Method Summary

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

Reads an instance of EncryptionSettings from the JsonReader.

InfrastructureEncryptionState infrastructureEncryption()

Get the infrastructureEncryption property: Enabling/Disabling the Double Encryption state.

CmkKekIdentity kekIdentity()

Get the kekIdentity property: The details of the managed identity used for CMK.

CmkKeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: The properties of the Key Vault which hosts CMK.

EncryptionState state()

Get the state property: Encryption state of the Backup Vault.

JsonWriter toJson(JsonWriter jsonWriter)
EncryptionSettings withInfrastructureEncryption(InfrastructureEncryptionState infrastructureEncryption)

Set the infrastructureEncryption property: Enabling/Disabling the Double Encryption state.

EncryptionSettings withKekIdentity(CmkKekIdentity kekIdentity)

Set the kekIdentity property: The details of the managed identity used for CMK.

EncryptionSettings withKeyVaultProperties(CmkKeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: The properties of the Key Vault which hosts CMK.

EncryptionSettings withState(EncryptionState state)

Set the state property: Encryption state of the Backup Vault.

Methods inherited from java.lang.Object

Constructor Details

EncryptionSettings

public EncryptionSettings()

Creates an instance of EncryptionSettings class.

Method Details

fromJson

public static EncryptionSettings fromJson(JsonReader jsonReader)

Reads an instance of EncryptionSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

infrastructureEncryption

public InfrastructureEncryptionState infrastructureEncryption()

Get the infrastructureEncryption property: Enabling/Disabling the Double Encryption state.

Returns:

the infrastructureEncryption value.

kekIdentity

public CmkKekIdentity kekIdentity()

Get the kekIdentity property: The details of the managed identity used for CMK.

Returns:

the kekIdentity value.

keyVaultProperties

public CmkKeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: The properties of the Key Vault which hosts CMK.

Returns:

the keyVaultProperties value.

state

public EncryptionState state()

Get the state property: Encryption state of the Backup Vault.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withInfrastructureEncryption

public EncryptionSettings withInfrastructureEncryption(InfrastructureEncryptionState infrastructureEncryption)

Set the infrastructureEncryption property: Enabling/Disabling the Double Encryption state.

Parameters:

infrastructureEncryption - the infrastructureEncryption value to set.

Returns:

the EncryptionSettings object itself.

withKekIdentity

public EncryptionSettings withKekIdentity(CmkKekIdentity kekIdentity)

Set the kekIdentity property: The details of the managed identity used for CMK.

Parameters:

kekIdentity - the kekIdentity value to set.

Returns:

the EncryptionSettings object itself.

withKeyVaultProperties

public EncryptionSettings withKeyVaultProperties(CmkKeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: The properties of the Key Vault which hosts CMK.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the EncryptionSettings object itself.

withState

public EncryptionSettings withState(EncryptionState state)

Set the state property: Encryption state of the Backup Vault.

Parameters:

state - the state value to set.

Returns:

the EncryptionSettings object itself.

Applies to