# Google Cloud Maintenance Api V1 Client - Class Maintenance (0.4.0)

0.4.0 (latest) 0.3.2 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Maintenance Api V1 Client class Maintenance.

Maintenance is the maintenance details of a resource's maintenance.

Generated from protobuf message `google.cloud.maintenance.api.v1.ResourceMaintenance.Maintenance`

## Namespace

Google \\ Cloud \\ Maintenance \\ Api \\ V1 \\ ResourceMaintenance

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ maintenance_name` | `string` Maintenance is the name of the corresponding maintenance resource following the standard naming scheme: `"{maintenance-id}"` |
| `↳ title` | `string` Output only. The title of the maintenance. |
| `↳ description` | `string` Output only. The description of the maintenance. |
| `↳ category` | `int` Output only. The category of the maintenance. |

### getMaintenanceName

Maintenance is the name of the corresponding maintenance resource
following the standard naming scheme: `"{maintenance-id}"`

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

### setMaintenanceName

Maintenance is the name of the corresponding maintenance resource
following the standard naming scheme: `"{maintenance-id}"`

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

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

### getTitle

Output only. The title of the maintenance.

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

### setTitle

Output only. The title of the maintenance.

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

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

### getDescription

Output only. The description of the maintenance.

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

### setDescription

Output only. The description of the maintenance.

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

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

### getCategory

Output only. The category of the maintenance.

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

### setCategory

Output only. The category of the maintenance.

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

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