# Google Cloud Database Center V1beta Client - Class ResourceMaintenanceSchedule (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class ResourceMaintenanceSchedule.

Maintenance window for the database resource. It specifies preferred time
and day of the week and phase in some cases, when the maintenance can start.

Generated from protobuf message `google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_time` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeOfDay.html` Optional. Preferred time to start the maintenance operation on the specified day. |
| `↳ day` | `int` Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. |
| `↳ phase` | `int` Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - <https://cloud.google.com/sql/docs/mysql/maintenance> |

### getStartTime

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

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

### hasStartTime

### clearStartTime

### setStartTime

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

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

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

### getDay

Optional. 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

Optional. 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` |   |

### getPhase

Optional. Phase of the maintenance window. This is to capture order of
maintenance. For example, for Cloud SQL resources, this can be used to
capture if the maintenance window is in Week1, Week2, Week5, etc. Non
production resources are usually part of early phase.

For more details, refer to Cloud SQL resources -
<https://cloud.google.com/sql/docs/mysql/maintenance>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Phase](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Phase). |

### setPhase

Optional. Phase of the maintenance window. This is to capture order of
maintenance. For example, for Cloud SQL resources, this can be used to
capture if the maintenance window is in Week1, Week2, Week5, etc. Non
production resources are usually part of early phase.

For more details, refer to Cloud SQL resources -
<https://cloud.google.com/sql/docs/mysql/maintenance>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Phase](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.Phase). |

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