Encryption Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceupdate.models.Encryption

Implements

public final class Encryption
implements JsonSerializable<Encryption>

The CMK encryption settings on the Device Update account.

Constructor Summary

Constructor Description
Encryption()

Creates an instance of Encryption class.

Method Summary

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

Reads an instance of Encryption from the JsonReader.

String keyVaultKeyUri()

Get the keyVaultKeyUri property: The URI of the key vault.

JsonWriter toJson(JsonWriter jsonWriter)
String userAssignedIdentity()

Get the userAssignedIdentity property: The full resourceId of the user assigned identity to be used for key vault access.

void validate()

Validates the instance.

Encryption withKeyVaultKeyUri(String keyVaultKeyUri)

Set the keyVaultKeyUri property: The URI of the key vault.

Encryption withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The full resourceId of the user assigned identity to be used for key vault access.

Methods inherited from java.lang.Object

Constructor Details

Encryption

public Encryption()

Creates an instance of Encryption class.

Method Details

fromJson

public static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keyVaultKeyUri

public String keyVaultKeyUri()

Get the keyVaultKeyUri property: The URI of the key vault.

Returns:

the keyVaultKeyUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userAssignedIdentity

public String userAssignedIdentity()

Get the userAssignedIdentity property: The full resourceId of the user assigned identity to be used for key vault access. Identity has to be also assigned to the Account.

Returns:

the userAssignedIdentity value.

validate

public void validate()

Validates the instance.

withKeyVaultKeyUri

public Encryption withKeyVaultKeyUri(String keyVaultKeyUri)

Set the keyVaultKeyUri property: The URI of the key vault.

Parameters:

keyVaultKeyUri - the keyVaultKeyUri value to set.

Returns:

the Encryption object itself.

withUserAssignedIdentity

public Encryption withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The full resourceId of the user assigned identity to be used for key vault access. Identity has to be also assigned to the Account.

Parameters:

userAssignedIdentity - the userAssignedIdentity value to set.

Returns:

the Encryption object itself.

Applies to