KeyVaultSecretReference Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. KeyVaultSecretReference
- com.
Implements
public final class KeyVaultSecretReference
implements JsonSerializable<KeyVaultSecretReference>
Describes a reference to Key Vault Secret.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultSecretReference() |
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 |
Sub |
sourceVault()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withSecretUrl(String secretUrl)
Set the secret |
Key |
withSourceVault(SubResource sourceVault)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultSecretReference
public KeyVaultSecretReference()
Creates an instance of KeyVaultSecretReference class.
Method Details
fromJson
public static KeyVaultSecretReference fromJson(JsonReader jsonReader)
Reads an instance of KeyVaultSecretReference from the JsonReader.
Parameters:
Returns:
Throws:
secretUrl
public String secretUrl()
Get the secretUrl property: The URL referencing a secret in a Key Vault.
Returns:
sourceVault
public SubResource sourceVault()
Get the sourceVault property: The relative URL of the Key Vault containing the secret.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSecretUrl
public KeyVaultSecretReference withSecretUrl(String secretUrl)
Set the secretUrl property: The URL referencing a secret in a Key Vault.
Parameters:
Returns:
withSourceVault
public KeyVaultSecretReference withSourceVault(SubResource sourceVault)
Set the sourceVault property: The relative URL of the Key Vault containing the secret.
Parameters:
Returns:
Applies to
Azure SDK for Java