# Google Cloud Maintenance Api V1 Client - Class MaintenanceControl (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 MaintenanceControl.

The control of the maintenance.

Generated from protobuf message `google.cloud.maintenance.api.v1.MaintenanceControl`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ control` | `int` The control of the resource maintenance. |
| `↳ is_custom` | `bool` Indicates whether the control is available only in Service Producer API (not through Unified Maintenance). |
| `↳ documentation` | `string` Link to Service Producer documentation about maintenance control. Provided only when `isCustom` is `true`. |

### getControl

The control of the resource maintenance.

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

### setControl

The control of the resource maintenance.

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

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

### getIsCustom

Indicates whether the control is available only in Service Producer API
(not through Unified Maintenance).

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

### setIsCustom

Indicates whether the control is available only in Service Producer API
(not through Unified Maintenance).

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

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

### getDocumentation

Link to Service Producer documentation about maintenance control. Provided
only when `isCustom` is `true`.

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

### setDocumentation

Link to Service Producer documentation about maintenance control. Provided
only when `isCustom` is `true`.

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

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