Class KeyVaultSecretReference
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.KeyVaultSecretReference
-
public final class KeyVaultSecretReference extends Object
Describes a reference to Key Vault Secret.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultSecretReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsecretUrl()Get the secretUrl property: The URL referencing a secret in a Key Vault.com.azure.core.management.SubResourcesourceVault()Get the sourceVault property: The relative URL of the Key Vault containing the secret.voidvalidate()Validates the instance.KeyVaultSecretReferencewithSecretUrl(String secretUrl)Set the secretUrl property: The URL referencing a secret in a Key Vault.KeyVaultSecretReferencewithSourceVault(com.azure.core.management.SubResource sourceVault)Set the sourceVault property: The relative URL of the Key Vault containing the secret.
-
-
-
Method Detail
-
secretUrl
public String secretUrl()
Get the secretUrl property: The URL referencing a secret in a Key Vault.- Returns:
- the secretUrl value.
-
withSecretUrl
public KeyVaultSecretReference withSecretUrl(String secretUrl)
Set the secretUrl property: The URL referencing a secret in a Key Vault.- Parameters:
secretUrl- the secretUrl value to set.- Returns:
- the KeyVaultSecretReference object itself.
-
sourceVault
public com.azure.core.management.SubResource sourceVault()
Get the sourceVault property: The relative URL of the Key Vault containing the secret.- Returns:
- the sourceVault value.
-
withSourceVault
public KeyVaultSecretReference withSourceVault(com.azure.core.management.SubResource sourceVault)
Set the sourceVault property: The relative URL of the Key Vault containing the secret.- Parameters:
sourceVault- the sourceVault value to set.- Returns:
- the KeyVaultSecretReference object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-