# Google Cloud Network Security V1 Client - Class CreateMirroringEndpointGroupAssociationRequest (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class CreateMirroringEndpointGroupAssociationRequest.

Request message for CreateMirroringEndpointGroupAssociation.

Generated from protobuf message `google.cloud.networksecurity.v1.CreateMirroringEndpointGroupAssociationRequest`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location} |
| `↳ mirroring_endpoint_group_association_id` | `string` Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID. |
| `↳ mirroring_endpoint_group_association` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation` Required. The association to create. |
| `↳ request_id` | `string` Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See <https://google.aip.dev/155> for more details. |

### getParent

Required. The parent resource where this association will be created.

Format: projects/{project}/locations/{location}

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

### setParent

Required. The parent resource where this association will be created.

Format: projects/{project}/locations/{location}

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

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

### getMirroringEndpointGroupAssociationId

Optional. The ID to use for the new association, which will become the
final component of the endpoint group's resource name. If not provided, the
server will generate a unique ID.

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

### setMirroringEndpointGroupAssociationId

Optional. The ID to use for the new association, which will become the
final component of the endpoint group's resource name. If not provided, the
server will generate a unique ID.

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

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

### getMirroringEndpointGroupAssociation

Required. The association to create.

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

### hasMirroringEndpointGroupAssociation

### clearMirroringEndpointGroupAssociation

### setMirroringEndpointGroupAssociation

Required. The association to create.

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

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

### getRequestId

Optional. A unique identifier for this request. Must be a UUID4.

This request is only idempotent if a `request_id` is provided.
See <https://google.aip.dev/155> for more details.

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

### setRequestId

Optional. A unique identifier for this request. Must be a UUID4.

This request is only idempotent if a `request_id` is provided.
See <https://google.aip.dev/155> for more details.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location} Please see MirroringClient::locationName() for help formatting this field. |
| `mirroringEndpointGroupAssociation` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringEndpointGroupAssociation` Required. The association to create. |
| `mirroringEndpointGroupAssociationId` | `string` Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.CreateMirroringEndpointGroupAssociationRequest` |   |