# Google Cloud Advisory Notifications V1 Client - Class NotificationSettings (1.2.4)

1.2.4 (latest) 1.2.3 1.1.1 1.0.3 0.8.3 0.7.0 0.6.0 0.5.1 0.4.0 0.3.2 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class NotificationSettings.

Settings for each NotificationType.

Generated from protobuf message `google.cloud.advisorynotifications.v1.NotificationSettings`

## Namespace

Google \\ Cloud \\ AdvisoryNotifications \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Whether the associated NotificationType is enabled. |

### getEnabled

Whether the associated NotificationType is enabled.

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

### setEnabled

Whether the associated NotificationType is enabled.

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

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