# Google Cloud Maintenance Api V1beta Client - Class MaintenanceControl (0.4.0)

0.4.0 (latest) 0.3.2 0.2.1 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 Maintenance Api V1beta Client class MaintenanceControl.

The control of the maintenance.

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

## Namespace

Google \\ Cloud \\ Maintenance \\ Api \\ V1beta

## 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/V1beta.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/V1beta.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` |   |