0.16.0 (latest) 0.15.0 0.14.0 0.13.3 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Memorystore V1 Client class RescheduleMaintenanceRequest.

Request for rescheduling instance maintenance.

Generated from protobuf message `google.cloud.memorystore.v1.RescheduleMaintenanceRequest`

## Namespace

Google \\ Cloud \\ Memorystore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the instance to reschedule maintenance for: `projects/{project}/locations/{location_id}/instances/{instance}` |
| `↳ reschedule_type` | `int` Required. If reschedule type is SPECIFIC_TIME, schedule_time must be set. |
| `↳ schedule_time` | `Google\Protobuf\Timestamp` Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format. Example: `2012-11-15T16:19:00.094Z`. |

### getName

Required. Name of the instance to reschedule maintenance for:
`projects/{project}/locations/{location_id}/instances/{instance}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Name of the instance to reschedule maintenance for:
`projects/{project}/locations/{location_id}/instances/{instance}`

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

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

### getRescheduleType

Required. If reschedule type is SPECIFIC_TIME, schedule_time must be set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RescheduleType](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.RescheduleMaintenanceRequest.RescheduleType). |

### setRescheduleType

Required. If reschedule type is SPECIFIC_TIME, schedule_time must be set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RescheduleType](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.RescheduleMaintenanceRequest.RescheduleType). |

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

### getScheduleTime

Optional. Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in RFC 3339 format.

Example: `2012-11-15T16:19:00.094Z`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasScheduleTime

### clearScheduleTime

### setScheduleTime

Optional. Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in RFC 3339 format.

Example: `2012-11-15T16:19:00.094Z`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the instance to reschedule maintenance for: `projects/{project}/locations/{location_id}/instances/{instance}` Please see MemorystoreClient::instanceName() for help formatting this field. |
| `rescheduleType` | `int` Required. If reschedule type is SPECIFIC_TIME, schedule_time must be set. For allowed values, use constants defined on [RescheduleMaintenanceRequest\\RescheduleType](https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.RescheduleMaintenanceRequest.RescheduleType) |
| `scheduleTime` | `Google\Protobuf\Timestamp` Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format. Example: `2012-11-15T16:19:00.094Z`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-memorystore/latest/V1.RescheduleMaintenanceRequest` |   |