KeyVaultKeyReference Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.KeyVaultKeyReference

Implements

public final class KeyVaultKeyReference
implements JsonSerializable<KeyVaultKeyReference>

Describes a reference to key vault key.

Constructor Summary

Constructor Description
KeyVaultKeyReference()

Creates an instance of KeyVaultKeyReference class.

Method Summary

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

Reads an instance of KeyVaultKeyReference from the JsonReader.

String keyUrl()

Get the keyUrl property: The URL referencing a key encryption key in key vault.

KeyVaultKeyReferenceSourceVault sourceVault()

Get the sourceVault property: Describes a resource Id to source key vault.

JsonWriter toJson(JsonWriter jsonWriter)
KeyVaultKeyReference withKeyUrl(String keyUrl)

Set the keyUrl property: The URL referencing a key encryption key in key vault.

KeyVaultKeyReference withSourceVault(KeyVaultKeyReferenceSourceVault sourceVault)

Set the sourceVault property: Describes a resource Id to source key vault.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultKeyReference

public KeyVaultKeyReference()

Creates an instance of KeyVaultKeyReference class.

Method Details

fromJson

public static KeyVaultKeyReference fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultKeyReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultKeyReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

keyUrl

public String keyUrl()

Get the keyUrl property: The URL referencing a key encryption key in key vault.

Returns:

the keyUrl value.

sourceVault

public KeyVaultKeyReferenceSourceVault sourceVault()

Get the sourceVault property: Describes a resource Id to source key vault.

Returns:

the sourceVault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withKeyUrl

public KeyVaultKeyReference withKeyUrl(String keyUrl)

Set the keyUrl property: The URL referencing a key encryption key in key vault.

Parameters:

keyUrl - the keyUrl value to set.

Returns:

the KeyVaultKeyReference object itself.

withSourceVault

public KeyVaultKeyReference withSourceVault(KeyVaultKeyReferenceSourceVault sourceVault)

Set the sourceVault property: Describes a resource Id to source key vault.

Parameters:

sourceVault - the sourceVault value to set.

Returns:

the KeyVaultKeyReference object itself.

Applies to