KeyVaultAndKeyReference Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. KeyVaultAndKeyReference
- com.
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 Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
String |
keyUrl()
Get the key |
Source |
sourceVault()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withKeyUrl(String keyUrl)
Set the key |
Key |
withSourceVault(SourceVault sourceVault)
Set the source |
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:
Returns:
Throws:
keyUrl
public String keyUrl()
Get the keyUrl property: Url pointing to a key or secret in KeyVault.
Returns:
sourceVault
public SourceVault sourceVault()
Get the sourceVault property: Resource id of the KeyVault containing the key or secret.
Returns:
toJson
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:
Returns:
withSourceVault
public KeyVaultAndKeyReference withSourceVault(SourceVault sourceVault)
Set the sourceVault property: Resource id of the KeyVault containing the key or secret.
Parameters:
Returns:
Applies to
Azure SDK for Java