KeyVaultAndSecretReference Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. KeyVaultAndSecretReference
- com.
Implements
public final class KeyVaultAndSecretReference
implements JsonSerializable<KeyVaultAndSecretReference>
Key Vault Secret Url and vault id of the encryption key.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultAndSecretReference() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
String |
secretUrl()
Get the secret |
Source |
sourceVault()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withSecretUrl(String secretUrl)
Set the secret |
Key |
withSourceVault(SourceVault sourceVault)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultAndSecretReference
public KeyVaultAndSecretReference()
Creates an instance of KeyVaultAndSecretReference class.
Method Details
fromJson
public static KeyVaultAndSecretReference fromJson(JsonReader jsonReader)
Reads an instance of KeyVaultAndSecretReference from the JsonReader.
Parameters:
Returns:
Throws:
secretUrl
public String secretUrl()
Get the secretUrl 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.
withSecretUrl
public KeyVaultAndSecretReference withSecretUrl(String secretUrl)
Set the secretUrl property: Url pointing to a key or secret in KeyVault.
Parameters:
Returns:
withSourceVault
public KeyVaultAndSecretReference withSourceVault(SourceVault sourceVault)
Set the sourceVault property: Resource id of the KeyVault containing the key or secret.
Parameters:
Returns: