# Class DataProtectionMode (2.22.0)

2.22.0 (latest) 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.1 2.15.5 2.14.0 2.13.1 2.12.1 2.11.1 2.10.0 2.9.3 2.8.1 2.7.1 2.6.0 2.5.1 2.4.1 2.3.0 2.2.4 2.1.1 2.0.0 1.0.2 0.4.0 0.3.0

    DataProtectionMode(value)

Specifies different modes of operation in relation to the
data retention.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `DATA_PROTECTION_MODE_UNSPECIFIED` | Defaults to LIMITED_DATA_LOSS if a data protection mode is not specified. |
| `LIMITED_DATA_LOSS` | Instance failover will be protected with data loss control. More specifically, the failover will only be performed if the current replication offset diff between primary and replica is under a certain threshold. |
| `FORCE_DATA_LOSS` | Instance failover will be performed without data loss control. |