Class KeyVaultCredentialSettings

java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.KeyVaultCredentialSettings

public final class KeyVaultCredentialSettings extends Object
Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.
  • Constructor Details

    • KeyVaultCredentialSettings

      public KeyVaultCredentialSettings()
  • Method Details

    • enable

      public Boolean enable()
      Get the enable property: Enable or disable key vault credential setting.
      Returns:
      the enable value.
    • withEnable

      public KeyVaultCredentialSettings withEnable(Boolean enable)
      Set the enable property: Enable or disable key vault credential setting.
      Parameters:
      enable - the enable value to set.
      Returns:
      the KeyVaultCredentialSettings object itself.
    • credentialName

      public String credentialName()
      Get the credentialName property: Credential name.
      Returns:
      the credentialName value.
    • withCredentialName

      public KeyVaultCredentialSettings withCredentialName(String credentialName)
      Set the credentialName property: Credential name.
      Parameters:
      credentialName - the credentialName value to set.
      Returns:
      the KeyVaultCredentialSettings object itself.
    • azureKeyVaultUrl

      public String azureKeyVaultUrl()
      Get the azureKeyVaultUrl property: Azure Key Vault url.
      Returns:
      the azureKeyVaultUrl value.
    • withAzureKeyVaultUrl

      public KeyVaultCredentialSettings withAzureKeyVaultUrl(String azureKeyVaultUrl)
      Set the azureKeyVaultUrl property: Azure Key Vault url.
      Parameters:
      azureKeyVaultUrl - the azureKeyVaultUrl value to set.
      Returns:
      the KeyVaultCredentialSettings object itself.
    • servicePrincipalName

      public String servicePrincipalName()
      Get the servicePrincipalName property: Service principal name to access key vault.
      Returns:
      the servicePrincipalName value.
    • withServicePrincipalName

      public KeyVaultCredentialSettings withServicePrincipalName(String servicePrincipalName)
      Set the servicePrincipalName property: Service principal name to access key vault.
      Parameters:
      servicePrincipalName - the servicePrincipalName value to set.
      Returns:
      the KeyVaultCredentialSettings object itself.
    • servicePrincipalSecret

      public String servicePrincipalSecret()
      Get the servicePrincipalSecret property: Service principal name secret to access key vault.
      Returns:
      the servicePrincipalSecret value.
    • withServicePrincipalSecret

      public KeyVaultCredentialSettings withServicePrincipalSecret(String servicePrincipalSecret)
      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.