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

Message for rules config info.

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

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rule_id` | `string` Output only. Backup Rule id fetched from backup plan. |
| `↳ last_backup_state` | `int` Output only. The last backup state for rule. |
| `↳ last_backup_error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. google.rpc.Status object to store the last backup error. |
| `↳ last_successful_backup_consistency_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The point in time when the last successful backup was captured from the source. |

### getRuleId

Output only. Backup Rule id fetched from backup plan.

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

### setRuleId

Output only. Backup Rule id fetched from backup plan.

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

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

### getLastBackupState

Output only. The last backup state for rule.

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

### setLastBackupState

Output only. The last backup state for rule.

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

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

### getLastBackupError

Output only. google.rpc.Status object to store the last backup error.

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

### hasLastBackupError

### clearLastBackupError

### setLastBackupError

Output only. google.rpc.Status object to store the last backup error.

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

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

### getLastSuccessfulBackupConsistencyTime

Output only. The point in time when the last successful backup was captured
from the source.

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

### hasLastSuccessfulBackupConsistencyTime

### clearLastSuccessfulBackupConsistencyTime

### setLastSuccessfulBackupConsistencyTime

Output only. The point in time when the last successful backup was captured
from the source.

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

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