Class KeyVaultAndKeyReference
java.lang.Object
com.azure.resourcemanager.compute.models.KeyVaultAndKeyReference
Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeyUrl()Get the keyUrl property: Url pointing to a key or secret in KeyVault.Get the sourceVault property: Resource id of the KeyVault containing the key or secret.voidvalidate()Validates the instance.withKeyUrl(String keyUrl) Set the keyUrl property: Url pointing to a key or secret in KeyVault.withSourceVault(SourceVault sourceVault) Set the sourceVault property: Resource id of the KeyVault containing the key or secret.
-
Constructor Details
-
KeyVaultAndKeyReference
public KeyVaultAndKeyReference()
-
-
Method Details
-
sourceVault
Get the sourceVault property: Resource id of the KeyVault containing the key or secret.- Returns:
- the sourceVault value.
-
withSourceVault
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.
-
keyUrl
Get the keyUrl property: Url pointing to a key or secret in KeyVault.- Returns:
- the keyUrl value.
-
withKeyUrl
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-