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 geoBackupEncryptionKeyStatus property: Geo-backup encryption key status for Data encryption enabled
server.
Get the geoBackupKeyUri property: URI for the key in keyvault for data encryption for geo-backup of server.
Get the geoBackupUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for geo-backup of server.
Get the primaryEncryptionKeyStatus property: Primary encryption key status for Data encryption enabled server.
Get the primaryKeyUri property: URI for the key in keyvault for data encryption of the primary server.
Get the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption of the primary server.
Get the type property: Data encryption type to depict if it is System Managed vs Azure Key vault.
void
Set the geoBackupEncryptionKeyStatus property: Geo-backup encryption key status for Data encryption enabled
server.
Set the geoBackupKeyUri property: URI for the key in keyvault for data encryption for geo-backup of server.
Set the geoBackupUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for geo-backup of server.
Set the primaryEncryptionKeyStatus property: Primary encryption key status for Data encryption enabled server.
Set the primaryKeyUri property: URI for the key in keyvault for data encryption of the primary server.
Set the primaryUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption of the primary server.
Set the type property: Data encryption type to depict if it is System Managed 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 in keyvault for data encryption of the primary server.
- Returns:
- the primaryKeyUri value.
-
withPrimaryKeyUri
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.
-
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.
-
withPrimaryUserAssignedIdentityId
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.
-
geoBackupKeyUri
public String geoBackupKeyUri()
Get the geoBackupKeyUri property: URI for the key in keyvault for data encryption for geo-backup of server.
- Returns:
- the geoBackupKeyUri value.
-
withGeoBackupKeyUri
Set the geoBackupKeyUri property: URI for the key in keyvault for data encryption for geo-backup of server.
- Parameters:
geoBackupKeyUri - the geoBackupKeyUri value to set.
- Returns:
- the DataEncryption object itself.
-
geoBackupUserAssignedIdentityId
public String geoBackupUserAssignedIdentityId()
Get the geoBackupUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for geo-backup of server.
- Returns:
- the geoBackupUserAssignedIdentityId value.
-
withGeoBackupUserAssignedIdentityId
Set the geoBackupUserAssignedIdentityId property: Resource Id for the User assigned identity to be used for data
encryption for geo-backup of server.
- Parameters:
geoBackupUserAssignedIdentityId - the geoBackupUserAssignedIdentityId value to set.
- Returns:
- the DataEncryption object itself.
-
type
Get the type property: Data encryption type to depict if it is System Managed vs Azure Key vault.
- Returns:
- the type value.
-
withType
Set the type property: Data encryption type to depict if it is System Managed vs Azure Key vault.
- Parameters:
type - the type value to set.
- Returns:
- the DataEncryption object itself.
-
primaryEncryptionKeyStatus
Get the primaryEncryptionKeyStatus property: Primary encryption key status for Data encryption enabled server.
- Returns:
- the primaryEncryptionKeyStatus value.
-
withPrimaryEncryptionKeyStatus
Set the primaryEncryptionKeyStatus property: Primary encryption key status for Data encryption enabled server.
- Parameters:
primaryEncryptionKeyStatus - the primaryEncryptionKeyStatus value to set.
- Returns:
- the DataEncryption object itself.
-
geoBackupEncryptionKeyStatus
Get the geoBackupEncryptionKeyStatus property: Geo-backup encryption key status for Data encryption enabled
server.
- Returns:
- the geoBackupEncryptionKeyStatus value.
-
withGeoBackupEncryptionKeyStatus
Set the geoBackupEncryptionKeyStatus property: Geo-backup encryption key status for Data encryption enabled
server.
- Parameters:
geoBackupEncryptionKeyStatus - the geoBackupEncryptionKeyStatus value to set.
- Returns:
- the DataEncryption object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.