# Google Cloud Network Connectivity V1 Client - Class RouterApplianceInstance (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 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 Connectivity V1 Client class RouterApplianceInstance.

A router appliance instance is a Compute Engine virtual machine (VM) instance
that acts as a BGP speaker. A router appliance instance is specified by the
URI of the VM and the internal IP address of one of the VM's network
interfaces.

Generated from protobuf message `google.cloud.networkconnectivity.v1.RouterApplianceInstance`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ virtual_machine` | `string` The URI of the VM. |
| `↳ ip_address` | `string` The IP address on the VM to use for peering. |

### getVirtualMachine

The URI of the VM.

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

### setVirtualMachine

The URI of the VM.

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

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

### getIpAddress

The IP address on the VM to use for peering.

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

### setIpAddress

The IP address on the VM to use for peering.

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

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