# Google Cloud Redis V1 Client - Class MaintenanceSchedule (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 MaintenanceSchedule.

Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
populated.

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

## Namespace

Google \\ Cloud \\ Redis \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The start time of any upcoming scheduled maintenance for this instance. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The end time of any upcoming scheduled maintenance for this instance. |
| `↳ can_reschedule` | `bool` If the scheduled maintenance can be rescheduled, default is true. |
| `↳ schedule_deadline_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. |

### getStartTime

Output only. The start time of any upcoming scheduled maintenance for this
instance.

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

### hasStartTime

### clearStartTime

### setStartTime

Output only. The start time of any upcoming scheduled maintenance for this
instance.

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

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

### getEndTime

Output only. The end time of any upcoming scheduled maintenance for this
instance.

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

### hasEndTime

### clearEndTime

### setEndTime

Output only. The end time of any upcoming scheduled maintenance for this
instance.

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

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

### getCanReschedule

If the scheduled maintenance can be rescheduled, default is true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setCanReschedule

If the scheduled maintenance can be rescheduled, default is true.

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

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

### getScheduleDeadlineTime

Output only. The deadline that the maintenance schedule start time can not
go beyond, including reschedule.

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

### hasScheduleDeadlineTime

### clearScheduleDeadlineTime

### setScheduleDeadlineTime

Output only. The deadline that the maintenance schedule start time can not
go beyond, including reschedule.

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

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