Class KeyVaultKeyReference
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.KeyVaultKeyReference
-
public final class KeyVaultKeyReference extends Object
Describes a reference to Key Vault Key.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultKeyReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringkeyUrl()Get the keyUrl property: The URL referencing a key encryption key in Key Vault.com.azure.core.management.SubResourcesourceVault()Get the sourceVault property: The relative URL of the Key Vault containing the key.voidvalidate()Validates the instance.KeyVaultKeyReferencewithKeyUrl(String keyUrl)Set the keyUrl property: The URL referencing a key encryption key in Key Vault.KeyVaultKeyReferencewithSourceVault(com.azure.core.management.SubResource sourceVault)Set the sourceVault property: The relative URL of the Key Vault containing the key.
-
-
-
Method Detail
-
keyUrl
public String keyUrl()
Get the keyUrl property: The URL referencing a key encryption key in Key Vault.- Returns:
- the keyUrl value.
-
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.
-
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
public KeyVaultKeyReference withSourceVault(com.azure.core.management.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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-