1.8.4 (latest) 1.7.1 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class MaintenanceWindow.

MaintenanceWindow specifies a preferred day and time for maintenance.

Generated from protobuf message `google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1 \\ MaintenanceUpdatePolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ day` | `int` Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. |
| `↳ start_time` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html` Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time. |

### getDay

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

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

### setDay

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

| **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

Preferred time to start the maintenance operation on the specified day.

Maintenance will start within 1 hour of this time.

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

### hasStartTime

### clearStartTime

### setStartTime

Preferred time to start the maintenance operation on the specified day.

Maintenance will start within 1 hour of this time.

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

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