EncryptionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.loadtesting.models.EncryptionProperties

Implements

public final class EncryptionProperties
implements JsonSerializable<EncryptionProperties>

Key and identity details for Customer Managed Key encryption of load test resource.

Constructor Summary

Constructor Description
EncryptionProperties()

Creates an instance of EncryptionProperties class.

Method Summary

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

Reads an instance of EncryptionProperties from the JsonReader.

EncryptionPropertiesIdentity identity()

Get the identity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

String keyUrl()

Get the keyUrl property: key encryption key Url, versioned.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionProperties withIdentity(EncryptionPropertiesIdentity identity)

Set the identity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

EncryptionProperties withKeyUrl(String keyUrl)

Set the keyUrl property: key encryption key Url, versioned.

Methods inherited from java.lang.Object

Constructor Details

EncryptionProperties

public EncryptionProperties()

Creates an instance of EncryptionProperties class.

Method Details

fromJson

public static EncryptionProperties fromJson(JsonReader jsonReader)

Reads an instance of EncryptionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public EncryptionPropertiesIdentity identity()

Get the identity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

Returns:

the identity value.

keyUrl

public String keyUrl()

Get the keyUrl property: key encryption key Url, versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.

Returns:

the keyUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public EncryptionProperties withIdentity(EncryptionPropertiesIdentity identity)

Set the identity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

Parameters:

identity - the identity value to set.

Returns:

the EncryptionProperties object itself.

withKeyUrl

public EncryptionProperties withKeyUrl(String keyUrl)

Set the keyUrl property: key encryption key Url, versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.

Parameters:

keyUrl - the keyUrl value to set.

Returns:

the EncryptionProperties object itself.

Applies to