# Google Cloud Managed Kafka V1 Client - Class AddAclEntryRequest (0.8.0)

0.8.0 (latest) 0.7.2 0.6.1 0.5.0 0.4.1 0.3.1 0.2.3 0.1.3 Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class AddAclEntryRequest.

Request for AddAclEntry.

Generated from protobuf message `google.cloud.managedkafka.v1.AddAclEntryRequest`

## Namespace

Google \\ Cloud \\ ManagedKafka \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ acl` | `string` Required. The name of the acl to add the acl entry to. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details. |
| `↳ acl_entry` | `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.AclEntry` Required. The acl entry to add. |

### getAcl

Required. The name of the acl to add the acl entry to.

Structured like:
`projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
The structure of `acl_id` defines the Resource Pattern (resource_type,
resource_name, pattern_type) of the acl. See `Acl.name` for
details.

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

### setAcl

Required. The name of the acl to add the acl entry to.

Structured like:
`projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.
The structure of `acl_id` defines the Resource Pattern (resource_type,
resource_name, pattern_type) of the acl. See `Acl.name` for
details.

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

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

### getAclEntry

Required. The acl entry to add.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.AclEntry|null` |   |

### hasAclEntry

### clearAclEntry

### setAclEntry

Required. The acl entry to add.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.AclEntry` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `acl` | `string` Required. The name of the acl to add the acl entry to. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details. Please see ManagedKafkaClient::aclName() for help formatting this field. |
| `aclEntry` | `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.AclEntry` Required. The acl entry to add. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-managedkafka/latest/V1.AddAclEntryRequest` |   |