# Google Cloud Network Security V1 Client - Class AssociationDetails (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 AssociationDetails.

The endpoint group's view of a connected association.

Generated from protobuf message `google.cloud.networksecurity.v1.InterceptEndpointGroup.AssociationDetails`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ InterceptEndpointGroup

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The connected association's resource name, for example: `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`. See <https://google.aip.dev/124>. |
| `↳ network` | `string` Output only. The associated network, for example: projects/123456789/global/networks/my-network. See <https://google.aip.dev/124>. |
| `↳ state` | `int` Output only. Most recent known state of the association. |

### getName

Output only. The connected association's resource name, for example:
`projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.

See <https://google.aip.dev/124>.

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

### setName

Output only. The connected association's resource name, for example:
`projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`.

See <https://google.aip.dev/124>.

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

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

### getNetwork

Output only. The associated network, for example:
projects/123456789/global/networks/my-network.

See <https://google.aip.dev/124>.

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

### setNetwork

Output only. The associated network, for example:
projects/123456789/global/networks/my-network.

See <https://google.aip.dev/124>.

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

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

### getState

Output only. Most recent known state of the association.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.InterceptEndpointGroupAssociation.State). |

### setState

Output only. Most recent known state of the association.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.InterceptEndpointGroupAssociation.State). |

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