java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.DataEncryption

public final class DataEncryption extends Object
Data encryption properties of a server.
  • Constructor Details

    • DataEncryption

      public DataEncryption()
      Creates an instance of DataEncryption class.
  • Method Details

    • 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.
    • 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.
    • 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

      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.
    • 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

      public DataEncryption withGeoBackupKeyUri(String geoBackupKeyUri)
      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

      public DataEncryption withGeoBackupUserAssignedIdentityId(String geoBackupUserAssignedIdentityId)
      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

      public ArmServerKeyType type()
      Get the type property: Data encryption type to depict if it is System Managed vs Azure Key vault.
      Returns:
      the type value.
    • withType

      public DataEncryption withType(ArmServerKeyType type)
      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

      public KeyStatusEnum primaryEncryptionKeyStatus()
      Get the primaryEncryptionKeyStatus property: Primary encryption key status for Data encryption enabled server.
      Returns:
      the primaryEncryptionKeyStatus value.
    • withPrimaryEncryptionKeyStatus

      public DataEncryption withPrimaryEncryptionKeyStatus(KeyStatusEnum primaryEncryptionKeyStatus)
      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

      public KeyStatusEnum geoBackupEncryptionKeyStatus()
      Get the geoBackupEncryptionKeyStatus property: Geo-backup encryption key status for Data encryption enabled server.
      Returns:
      the geoBackupEncryptionKeyStatus value.
    • withGeoBackupEncryptionKeyStatus

      public DataEncryption withGeoBackupEncryptionKeyStatus(KeyStatusEnum geoBackupEncryptionKeyStatus)
      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.