# Google Cloud Datastream V1 Client - Class VpcPeeringConfig (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class VpcPeeringConfig.

The VPC Peering configuration is used to create VPC peering between
Datastream and the consumer's VPC.

Generated from protobuf message `google.cloud.datastream.v1.VpcPeeringConfig`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ vpc` | `string` Required. Fully qualified name of the VPC that Datastream will peer to. Format: `projects/{project}/global/{networks}/{name}` |
| `↳ subnet` | `string` Required. A free subnet for peering. (CIDR of /29) |

### getVpc

Required. Fully qualified name of the VPC that Datastream will peer to.

Format: `projects/{project}/global/{networks}/{name}`

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

### setVpc

Required. Fully qualified name of the VPC that Datastream will peer to.

Format: `projects/{project}/global/{networks}/{name}`

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

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

### getSubnet

Required. A free subnet for peering. (CIDR of /29)

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

### setSubnet

Required. A free subnet for peering. (CIDR of /29)

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

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