DataEncryption Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmosdbforpostgresql.models.DataEncryption

Implements

public final class DataEncryption
implements JsonSerializable<DataEncryption>

The data encryption properties of a cluster.

Constructor Summary

Constructor Description
DataEncryption()

Creates an instance of DataEncryption class.

Method Summary

Modifier and Type Method and Description
static DataEncryption fromJson(JsonReader jsonReader)

Reads an instance of DataEncryption from the JsonReader.

String primaryKeyUri()

Get the primaryKeyUri property: URI for the key in keyvault for data encryption of the primary server.

String primaryUserAssignedIdentityId()

Get the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data encryption of the primary server.

JsonWriter toJson(JsonWriter jsonWriter)
DataEncryptionType type()

Get the type property: The type property.

DataEncryption withPrimaryKeyUri(String primaryKeyUri)

Set the primaryKeyUri property: URI for the key in keyvault for data encryption of the primary server.

DataEncryption withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)

Set the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data encryption of the primary server.

DataEncryption withType(DataEncryptionType type)

Set the type property: The type property.

Methods inherited from java.lang.Object

Constructor Details

DataEncryption

public DataEncryption()

Creates an instance of DataEncryption class.

Method Details

fromJson

public static DataEncryption fromJson(JsonReader jsonReader)

Reads an instance of DataEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the DataEncryption.

primaryKeyUri

public String primaryKeyUri()

Get the primaryKeyUri property: URI for the key in keyvault for data encryption of the primary server.

Returns:

the primaryKeyUri value.

primaryUserAssignedIdentityId

public String primaryUserAssignedIdentityId()

Get the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data encryption of the primary server.

Returns:

the primaryUserAssignedIdentityId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DataEncryptionType type()

Get the type property: The type property.

Returns:

the type value.

withPrimaryKeyUri

public DataEncryption withPrimaryKeyUri(String primaryKeyUri)

Set the primaryKeyUri property: URI for the key in keyvault for data encryption of the primary server.

Parameters:

primaryKeyUri - the primaryKeyUri value to set.

Returns:

the DataEncryption object itself.

withPrimaryUserAssignedIdentityId

public DataEncryption withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)

Set the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data encryption of the primary server.

Parameters:

primaryUserAssignedIdentityId - the primaryUserAssignedIdentityId value to set.

Returns:

the DataEncryption object itself.

withType

public DataEncryption withType(DataEncryptionType type)

Set the type property: The type property.

Parameters:

type - the type value to set.

Returns:

the DataEncryption object itself.

Applies to