# Google Cloud Backup Dr V1 Client - Class BackupConfigInfo (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 BackupConfigInfo.

BackupConfigInfo has information about how the resource is configured
for Backup and about the most recent backup to this vault.

Generated from protobuf message `google.cloud.backupdr.v1.BackupConfigInfo`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ last_backup_state` | `int` Output only. The status of the last backup to this BackupVault |
| `↳ last_successful_backup_consistency_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. If the last backup were successful, this field has the consistency date. |
| `↳ last_backup_error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. If the last backup failed, this field has the error message. |
| `↳ gcp_backup_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.GcpBackupConfig` Configuration for a Google Cloud resource. |
| `↳ backup_appliance_backup_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.BackupApplianceBackupConfig` Configuration for an application backed up by a Backup Appliance. |

### getLastBackupState

Output only. The status of the last backup to this BackupVault

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

### setLastBackupState

Output only. The status of the last backup to this BackupVault

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

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

### getLastSuccessfulBackupConsistencyTime

Output only. If the last backup were successful, this field has the
consistency date.

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

### hasLastSuccessfulBackupConsistencyTime

### clearLastSuccessfulBackupConsistencyTime

### setLastSuccessfulBackupConsistencyTime

Output only. If the last backup were successful, this field has the
consistency date.

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

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

### getLastBackupError

Output only. If the last backup failed, this field has the error message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasLastBackupError

### clearLastBackupError

### setLastBackupError

Output only. If the last backup failed, this field has the error message.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getGcpBackupConfig

Configuration for a Google Cloud resource.

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

### hasGcpBackupConfig

### setGcpBackupConfig

Configuration for a Google Cloud resource.

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

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

### getBackupApplianceBackupConfig

Configuration for an application backed up by a Backup Appliance.

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

### hasBackupApplianceBackupConfig

### setBackupApplianceBackupConfig

Configuration for an application backed up by a Backup Appliance.

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

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

### getBackupConfig

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