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

BackupDrPlanRule has rule specific information of the backup plan resource.

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

## 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. Unique Id of the backup rule. |
| `↳ last_successful_backup_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp of the latest successful backup created via this backup rule. |

### getRuleId

Output only. Unique Id of the backup rule.

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

### setRuleId

Output only. Unique Id of the backup rule.

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

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

### getLastSuccessfulBackupTime

Output only. Timestamp of the latest successful backup created via this
backup rule.

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

### hasLastSuccessfulBackupTime

### clearLastSuccessfulBackupTime

### setLastSuccessfulBackupTime

Output only. Timestamp of the latest successful backup created via this
backup rule.

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

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