# Google Cloud Redis V1 Client - Class WeeklyMaintenanceWindow (2.2.3)

2.2.3 (latest) 2.2.2 2.1.6 2.0.0 1.9.5 1.8.4 1.7.0 1.6.12 Reference documentation and code samples for the Google Cloud Redis V1 Client class WeeklyMaintenanceWindow.

Time window in which disruptive maintenance updates occur. Non-disruptive
updates can occur inside or outside this window.

Generated from protobuf message `google.cloud.redis.v1.WeeklyMaintenanceWindow`

## Namespace

Google \\ Cloud \\ Redis \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ day` | `int` Required. The day of week that maintenance updates occur. |
| `↳ start_time` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html` Required. Start time of the window in UTC time. |
| `↳ duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Output only. Duration of the maintenance window. The current window is fixed at 1 hour. |

### getDay

Required. The day of week that maintenance updates occur.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DayOfWeek](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DayOfWeek.html). |

### setDay

Required. The day of week that maintenance updates occur.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DayOfWeek](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.DayOfWeek.html). |

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

### getStartTime

Required. Start time of the window in UTC time.

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

### hasStartTime

### clearStartTime

### setStartTime

Required. Start time of the window in UTC time.

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

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

### getDuration

Output only. Duration of the maintenance window. The current window is
fixed at 1 hour.

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

### hasDuration

### clearDuration

### setDuration

Output only. Duration of the maintenance window. The current window is
fixed at 1 hour.

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

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