KeyVaultKeyReference Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.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.

SubResource sourceVault()

Get the sourceVault property: The relative URL of the Key Vault containing the key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultKeyReference withKeyUrl(String keyUrl)

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

KeyVaultKeyReference withSourceVault(SubResource sourceVault)

Set the sourceVault property: The relative URL of the Key Vault containing the key.

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 SubResource sourceVault()

Get the sourceVault property: The relative URL of the Key Vault containing the key.

Returns:

the sourceVault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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(SubResource sourceVault)

Set the sourceVault property: The relative URL of the Key Vault containing the key.

Parameters:

sourceVault - the sourceVault value to set.

Returns:

the KeyVaultKeyReference object itself.

Applies to