KeyVaultCredentialSettings Class

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

public final class KeyVaultCredentialSettings

Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.

Constructor Summary

Constructor Description
KeyVaultCredentialSettings()

Creates an instance of KeyVaultCredentialSettings class.

Method Summary

Modifier and Type Method and Description
String azureKeyVaultUrl()

Get the azureKeyVaultUrl property: Azure Key Vault url.

String credentialName()

Get the credentialName property: Credential name.

Boolean enable()

Get the enable property: Enable or disable key vault credential setting.

String servicePrincipalName()

Get the servicePrincipalName property: Service principal name to access key vault.

String servicePrincipalSecret()

Get the servicePrincipalSecret property: Service principal name secret to access key vault.

void validate()

Validates the instance.

KeyVaultCredentialSettings withAzureKeyVaultUrl(String azureKeyVaultUrl)

Set the azureKeyVaultUrl property: Azure Key Vault url.

KeyVaultCredentialSettings withCredentialName(String credentialName)

Set the credentialName property: Credential name.

KeyVaultCredentialSettings withEnable(Boolean enable)

Set the enable property: Enable or disable key vault credential setting.

KeyVaultCredentialSettings withServicePrincipalName(String servicePrincipalName)

Set the servicePrincipalName property: Service principal name to access key vault.

KeyVaultCredentialSettings withServicePrincipalSecret(String servicePrincipalSecret)

Set the servicePrincipalSecret property: Service principal name secret to access key vault.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultCredentialSettings

public KeyVaultCredentialSettings()

Creates an instance of KeyVaultCredentialSettings class.

Method Details

azureKeyVaultUrl

public String azureKeyVaultUrl()

Get the azureKeyVaultUrl property: Azure Key Vault url.

Returns:

the azureKeyVaultUrl value.

credentialName

public String credentialName()

Get the credentialName property: Credential name.

Returns:

the credentialName value.

enable

public Boolean enable()

Get the enable property: Enable or disable key vault credential setting.

Returns:

the enable value.

servicePrincipalName

public String servicePrincipalName()

Get the servicePrincipalName property: Service principal name to access key vault.

Returns:

the servicePrincipalName value.

servicePrincipalSecret

public String servicePrincipalSecret()

Get the servicePrincipalSecret property: Service principal name secret to access key vault.

Returns:

the servicePrincipalSecret value.

validate

public void validate()

Validates the instance.

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.

withCredentialName

public KeyVaultCredentialSettings withCredentialName(String credentialName)

Set the credentialName property: Credential name.

Parameters:

credentialName - the credentialName value to set.

Returns:

the KeyVaultCredentialSettings object itself.

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.

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.

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.

Applies to