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

`BackupWindow` defines a window of the day during which backup jobs will run.

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

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_hour_of_day` | `int` Required. The hour of day (0-23) when the window starts for e.g. if value of start hour of day is 6 that mean backup window start at 6:00. |
| `↳ end_hour_of_day` | `int` Required. The hour of day (1-24) when the window end for e.g. if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 \<= start_hour_of_day \< end_hour_of_day \<= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00. |

### getStartHourOfDay

Required. The hour of day (0-23) when the window starts for e.g. if value
of start hour of day is 6 that mean backup window start at 6:00.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setStartHourOfDay

Required. The hour of day (0-23) when the window starts for e.g. if value
of start hour of day is 6 that mean backup window start at 6:00.

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

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

### getEndHourOfDay

Required. The hour of day (1-24) when the window end for e.g. if value of
end hour of day is 10 that mean backup window end time is 10:00.

End hour of day should be greater than start hour of day.
0 \<= start_hour_of_day \< end_hour_of_day \<= 24
End hour of day is not include in backup window that mean if
end_hour_of_day= 10 jobs should start before 10:00.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setEndHourOfDay

Required. The hour of day (1-24) when the window end for e.g. if value of
end hour of day is 10 that mean backup window end time is 10:00.

End hour of day should be greater than start hour of day.
0 \<= start_hour_of_day \< end_hour_of_day \<= 24
End hour of day is not include in backup window that mean if
end_hour_of_day= 10 jobs should start before 10:00.

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

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