KeyVaultAndKeyReference Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.KeyVaultAndKeyReference

Implements

public final class KeyVaultAndKeyReference
implements JsonSerializable<KeyVaultAndKeyReference>

Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey.

Constructor Summary

Constructor Description
KeyVaultAndKeyReference()

Creates an instance of KeyVaultAndKeyReference class.

Method Summary

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

Reads an instance of KeyVaultAndKeyReference from the JsonReader.

String keyUrl()

Get the keyUrl property: Url pointing to a key or secret in KeyVault.

SourceVault sourceVault()

Get the sourceVault property: Resource id of the KeyVault containing the key or secret.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultAndKeyReference withKeyUrl(String keyUrl)

Set the keyUrl property: Url pointing to a key or secret in KeyVault.

KeyVaultAndKeyReference withSourceVault(SourceVault sourceVault)

Set the sourceVault property: Resource id of the KeyVault containing the key or secret.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultAndKeyReference

public KeyVaultAndKeyReference()

Creates an instance of KeyVaultAndKeyReference class.

Method Details

fromJson

public static KeyVaultAndKeyReference fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultAndKeyReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultAndKeyReference 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: Url pointing to a key or secret in KeyVault.

Returns:

the keyUrl value.

sourceVault

public SourceVault sourceVault()

Get the sourceVault property: Resource id of the KeyVault containing the key or secret.

Returns:

the sourceVault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyUrl

public KeyVaultAndKeyReference withKeyUrl(String keyUrl)

Set the keyUrl property: Url pointing to a key or secret in KeyVault.

Parameters:

keyUrl - the keyUrl value to set.

Returns:

the KeyVaultAndKeyReference object itself.

withSourceVault

public KeyVaultAndKeyReference withSourceVault(SourceVault sourceVault)

Set the sourceVault property: Resource id of the KeyVault containing the key or secret.

Parameters:

sourceVault - the sourceVault value to set.

Returns:

the KeyVaultAndKeyReference object itself.

Applies to