SqlAlwaysEncryptedProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties

Implements

public final class SqlAlwaysEncryptedProperties
implements JsonSerializable<SqlAlwaysEncryptedProperties>

Sql always encrypted properties.

Constructor Summary

Constructor Description
SqlAlwaysEncryptedProperties()

Creates an instance of SqlAlwaysEncryptedProperties class.

Method Summary

Modifier and Type Method and Description
SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType()

Get the alwaysEncryptedAkvAuthType property: Sql always encrypted AKV authentication type.

CredentialReference credential()

Get the credential property: The credential reference containing authentication information.

static SqlAlwaysEncryptedProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlAlwaysEncryptedProperties from the JsonReader.

Object servicePrincipalId()

Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Azure Key Vault authentication.

SecretBase servicePrincipalKey()

Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure Key Vault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlAlwaysEncryptedProperties withAlwaysEncryptedAkvAuthType(SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType)

Set the alwaysEncryptedAkvAuthType property: Sql always encrypted AKV authentication type.

SqlAlwaysEncryptedProperties withCredential(CredentialReference credential)

Set the credential property: The credential reference containing authentication information.

SqlAlwaysEncryptedProperties withServicePrincipalId(Object servicePrincipalId)

Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Azure Key Vault authentication.

SqlAlwaysEncryptedProperties withServicePrincipalKey(SecretBase servicePrincipalKey)

Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure Key Vault.

Methods inherited from java.lang.Object

Constructor Details

SqlAlwaysEncryptedProperties

public SqlAlwaysEncryptedProperties()

Creates an instance of SqlAlwaysEncryptedProperties class.

Method Details

alwaysEncryptedAkvAuthType

public SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType()

Get the alwaysEncryptedAkvAuthType property: Sql always encrypted AKV authentication type. Type: string.

Returns:

the alwaysEncryptedAkvAuthType value.

credential

public CredentialReference credential()

Get the credential property: The credential reference containing authentication information.

Returns:

the credential value.

fromJson

public static SqlAlwaysEncryptedProperties fromJson(JsonReader jsonReader)

Reads an instance of SqlAlwaysEncryptedProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlAlwaysEncryptedProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

servicePrincipalId

public Object servicePrincipalId()

Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).

Returns:

the servicePrincipalId value.

servicePrincipalKey

public SecretBase servicePrincipalKey()

Get the servicePrincipalKey property: The key of the service principal used to authenticate against Azure Key Vault.

Returns:

the servicePrincipalKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAlwaysEncryptedAkvAuthType

public SqlAlwaysEncryptedProperties withAlwaysEncryptedAkvAuthType(SqlAlwaysEncryptedAkvAuthType alwaysEncryptedAkvAuthType)

Set the alwaysEncryptedAkvAuthType property: Sql always encrypted AKV authentication type. Type: string.

Parameters:

alwaysEncryptedAkvAuthType - the alwaysEncryptedAkvAuthType value to set.

Returns:

the SqlAlwaysEncryptedProperties object itself.

withCredential

public SqlAlwaysEncryptedProperties withCredential(CredentialReference credential)

Set the credential property: The credential reference containing authentication information.

Parameters:

credential - the credential value to set.

Returns:

the SqlAlwaysEncryptedProperties object itself.

withServicePrincipalId

public SqlAlwaysEncryptedProperties withServicePrincipalId(Object servicePrincipalId)

Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).

Parameters:

servicePrincipalId - the servicePrincipalId value to set.

Returns:

the SqlAlwaysEncryptedProperties object itself.

withServicePrincipalKey

public SqlAlwaysEncryptedProperties withServicePrincipalKey(SecretBase servicePrincipalKey)

Set the servicePrincipalKey property: The key of the service principal used to authenticate against Azure Key Vault.

Parameters:

servicePrincipalKey - the servicePrincipalKey value to set.

Returns:

the SqlAlwaysEncryptedProperties object itself.

Applies to