# Google Cloud Network Management V1 Client - Class ForwardInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class ForwardInfo.

Details of the final state "forward" and associated resource.

Generated from protobuf message `google.cloud.networkmanagement.v1.ForwardInfo`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ target` | `int` Target type where this packet is forwarded to. |
| `↳ resource_uri` | `string` URI of the resource that the packet is forwarded to. |
| `↳ ip_address` | `string` IP address of the target (if applicable). |

### getTarget

Target type where this packet is forwarded to.

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

### setTarget

Target type where this packet is forwarded to.

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

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

### getResourceUri

URI of the resource that the packet is forwarded to.

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

### setResourceUri

URI of the resource that the packet is forwarded to.

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

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

### getIpAddress

IP address of the target (if applicable).

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

### setIpAddress

IP address of the target (if applicable).

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

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