# Google Cloud Iap V1 Client - Class AllowedDomainsSettings (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.3 1.4.5 1.3.4 1.2.3 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Iap V1 Client class AllowedDomainsSettings.

Configuration for IAP allowed domains. Lets you to restrict access to an app
and allow access to only the domains that you list.

Generated from protobuf message `google.cloud.iap.v1.AllowedDomainsSettings`

## Namespace

Google \\ Cloud \\ Iap \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enable` | `bool` Optional. Configuration for customers to opt in for the feature. |
| `↳ domains` | `string[]` Optional. List of trusted domains. |

### getEnable

Optional. Configuration for customers to opt in for the feature.

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

### hasEnable

### clearEnable

### setEnable

Optional. Configuration for customers to opt in for the feature.

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

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

### getDomains

Optional. List of trusted domains.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDomains

Optional. List of trusted domains.

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

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