# Google Cloud Backup Dr V1 Client - Class EncryptionConfig (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class EncryptionConfig.

Message describing the EncryptionConfig of backup vault.

This determines how data within the vault is encrypted at rest.

Generated from protobuf message `google.cloud.backupdr.v1.BackupVault.EncryptionConfig`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1 \\ BackupVault

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ kms_key_name` | `string` Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key} |

### getKmsKeyName

Optional. The Cloud KMS key name to encrypt backups in this backup vault.

Must be in the same region as the vault. Some workload backups like
compute disk backups may use their inherited source key instead. Format:
projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKmsKeyName

### clearKmsKeyName

### setKmsKeyName

Optional. The Cloud KMS key name to encrypt backups in this backup vault.

Must be in the same region as the vault. Some workload backups like
compute disk backups may use their inherited source key instead. Format:
projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |