java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.DataEncryption
public final class DataEncryption
extends Object
Data encryption properties of a server.
-
Constructor Summary
Constructors
Creates an instance of DataEncryption class.
-
Method Summary
Get the primaryKeyUri property: URI for the key for data encryption for primary server.
Get the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for primary server.
Get the type property: Data encryption type to depict if it is System assigned vs Azure Key vault.
void
Set the primaryKeyUri property: URI for the key for data encryption for primary server.
Set the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for primary server.
Set the type property: Data encryption type to depict if it is System assigned vs Azure Key vault.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DataEncryption
public DataEncryption()
Creates an instance of DataEncryption class.
-
Method Details
-
primaryKeyUri
Get the primaryKeyUri property: URI for the key for data encryption for primary server.
- Returns:
- the primaryKeyUri value.
-
withPrimaryKeyUri
Set the primaryKeyUri property: URI for the key for data encryption for primary server.
- Parameters:
primaryKeyUri
- the primaryKeyUri value to set.
- Returns:
- the DataEncryption object itself.
-
primaryUserAssignedIdentityId
public String primaryUserAssignedIdentityId()
Get the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for primary server.
- Returns:
- the primaryUserAssignedIdentityId value.
-
withPrimaryUserAssignedIdentityId
Set the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for primary server.
- Parameters:
primaryUserAssignedIdentityId
- the primaryUserAssignedIdentityId value to set.
- Returns:
- the DataEncryption object itself.
-
type
Get the type property: Data encryption type to depict if it is System assigned vs Azure Key vault.
- Returns:
- the type value.
-
withType
Set the type property: Data encryption type to depict if it is System assigned vs Azure Key vault.
- Parameters:
type
- the type value to set.
- Returns:
- the DataEncryption object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.