# Google Cloud Dataplex V1 Client - Class EncryptionConfig (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class EncryptionConfig.

A Resource designed to manage encryption configurations for customers to
support Customer Managed Encryption Keys (CMEK).

Generated from protobuf message `google.cloud.dataplex.v1.EncryptionConfig`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported. |
| `↳ key` | `string` Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the Encryption configuration was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the Encryption configuration was last updated. |
| `↳ encryption_state` | `int` Output only. The state of encryption of the databases. |
| `↳ etag` | `string` Etag of the EncryptionConfig. This is a strong etag. |
| `↳ failure_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.EncryptionConfig.FailureDetails` Output only. Details of the failure if anything related to Cmek db fails. |
| `↳ enable_metastore_encryption` | `bool` Optional. Represent the state of CMEK opt-in for metastore. |

### getName

Identifier. The resource name of the EncryptionConfig.

Format:
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}
Global location is not supported.

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

### setName

Identifier. The resource name of the EncryptionConfig.

Format:
organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}
Global location is not supported.

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

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

### getKey

Optional. If a key is chosen, it means that the customer is using CMEK.

If a key is not chosen, it means that the customer is using Google managed
encryption.

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

### setKey

Optional. If a key is chosen, it means that the customer is using CMEK.

If a key is not chosen, it means that the customer is using Google managed
encryption.

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

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

### getCreateTime

Output only. The time when the Encryption configuration was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the Encryption configuration was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the Encryption configuration was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the Encryption configuration was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getEncryptionState

Output only. The state of encryption of the databases.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EncryptionState](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.EncryptionConfig.EncryptionState). |

### setEncryptionState

Output only. The state of encryption of the databases.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EncryptionState](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.EncryptionConfig.EncryptionState). |

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

### getEtag

Etag of the EncryptionConfig. This is a strong etag.

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

### setEtag

Etag of the EncryptionConfig. This is a strong etag.

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

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

### getFailureDetails

Output only. Details of the failure if anything related to Cmek db fails.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.EncryptionConfig.FailureDetails|null` |   |

### hasFailureDetails

### clearFailureDetails

### setFailureDetails

Output only. Details of the failure if anything related to Cmek db fails.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.EncryptionConfig.FailureDetails` |

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

### getEnableMetastoreEncryption

Optional. Represent the state of CMEK opt-in for metastore.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableMetastoreEncryption

Optional. Represent the state of CMEK opt-in for metastore.

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

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