Class KeyVaultKeyReference
java.lang.Object
com.azure.resourcemanager.compute.models.KeyVaultKeyReference
Describes a reference to Key Vault Key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeyUrl()Get the keyUrl property: The URL referencing a key encryption key in Key Vault.com.azure.core.management.SubResourceGet the sourceVault property: The relative URL of the Key Vault containing the key.voidvalidate()Validates the instance.withKeyUrl(String keyUrl) Set the keyUrl property: The URL referencing a key encryption key in Key Vault.withSourceVault(com.azure.core.management.SubResource sourceVault) Set the sourceVault property: The relative URL of the Key Vault containing the key.
-
Constructor Details
-
KeyVaultKeyReference
public KeyVaultKeyReference()Creates an instance of KeyVaultKeyReference class.
-
-
Method Details
-
keyUrl
Get the keyUrl property: The URL referencing a key encryption key in Key Vault.- Returns:
- the keyUrl value.
-
withKeyUrl
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.
-
sourceVault
public com.azure.core.management.SubResource sourceVault()Get the sourceVault property: The relative URL of the Key Vault containing the key.- Returns:
- the sourceVault value.
-
withSourceVault
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-