# Google Cloud Gke Backup V1 Client - Class EncryptionKey (1.3.3)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class EncryptionKey.

Defined a customer managed encryption key that will be used to encrypt Backup
artifacts.

Generated from protobuf message `google.cloud.gkebackup.v1.EncryptionKey`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getGcpKmsEncryptionKey

Optional. Google Cloud KMS encryption key. Format:
`projects/*/locations/*/keyRings/*/cryptoKeys/*`

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

### setGcpKmsEncryptionKey

Optional. Google Cloud KMS encryption key. Format:
`projects/*/locations/*/keyRings/*/cryptoKeys/*`

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

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