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 for data encryption for primary server.
      Returns:
      the primaryKeyUri value.
    • withPrimaryKeyUri

      public DataEncryption withPrimaryKeyUri(String primaryKeyUri)
      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

      public DataEncryption withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
      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

      public ArmServerKeyType type()
      Get the type property: Data encryption type to depict if it is System assigned 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 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.