Class KeyVaultCredentialSettings
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.KeyVaultCredentialSettings
Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the azureKeyVaultUrl property: Azure Key Vault url.Get the credentialName property: Credential name.enable()
Get the enable property: Enable or disable key vault credential setting.Get the servicePrincipalName property: Service principal name to access key vault.Get the servicePrincipalSecret property: Service principal name secret to access key vault.void
validate()
Validates the instance.withAzureKeyVaultUrl
(String azureKeyVaultUrl) Set the azureKeyVaultUrl property: Azure Key Vault url.withCredentialName
(String credentialName) Set the credentialName property: Credential name.withEnable
(Boolean enable) Set the enable property: Enable or disable key vault credential setting.withServicePrincipalName
(String servicePrincipalName) Set the servicePrincipalName property: Service principal name to access key vault.withServicePrincipalSecret
(String servicePrincipalSecret) Set the servicePrincipalSecret property: Service principal name secret to access key vault.
-
Constructor Details
-
KeyVaultCredentialSettings
public KeyVaultCredentialSettings()
-
-
Method Details
-
enable
Get the enable property: Enable or disable key vault credential setting.- Returns:
- the enable value.
-
withEnable
Set the enable property: Enable or disable key vault credential setting.- Parameters:
enable
- the enable value to set.- Returns:
- the KeyVaultCredentialSettings object itself.
-
credentialName
Get the credentialName property: Credential name.- Returns:
- the credentialName value.
-
withCredentialName
Set the credentialName property: Credential name.- Parameters:
credentialName
- the credentialName value to set.- Returns:
- the KeyVaultCredentialSettings object itself.
-
azureKeyVaultUrl
Get the azureKeyVaultUrl property: Azure Key Vault url.- Returns:
- the azureKeyVaultUrl value.
-
withAzureKeyVaultUrl
Set the azureKeyVaultUrl property: Azure Key Vault url.- Parameters:
azureKeyVaultUrl
- the azureKeyVaultUrl value to set.- Returns:
- the KeyVaultCredentialSettings object itself.
-
servicePrincipalName
Get the servicePrincipalName property: Service principal name to access key vault.- Returns:
- the servicePrincipalName value.
-
withServicePrincipalName
Set the servicePrincipalName property: Service principal name to access key vault.- Parameters:
servicePrincipalName
- the servicePrincipalName value to set.- Returns:
- the KeyVaultCredentialSettings object itself.
-
servicePrincipalSecret
Get the servicePrincipalSecret property: Service principal name secret to access key vault.- Returns:
- the servicePrincipalSecret value.
-
withServicePrincipalSecret
Set the servicePrincipalSecret property: Service principal name secret to access key vault.- Parameters:
servicePrincipalSecret
- the servicePrincipalSecret value to set.- Returns:
- the KeyVaultCredentialSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-