# Google Cloud Dms V1 Client - Class CreatePrivateConnectionRequest (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 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 Dms V1 Client class CreatePrivateConnectionRequest.

Request message to create a new private connection in the specified project
and region.

Generated from protobuf message `google.cloud.clouddms.v1.CreatePrivateConnectionRequest`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent that owns the collection of PrivateConnections. |
| `↳ private_connection_id` | `string` Required. The private connection identifier. |
| `↳ private_connection` | `https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.PrivateConnection` Required. The private connection resource to create. |
| `↳ request_id` | `string` Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. |
| `↳ skip_validation` | `bool` Optional. If set to true, will skip validations. |

### getParent

Required. The parent that owns the collection of PrivateConnections.

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

### setParent

Required. The parent that owns the collection of PrivateConnections.

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

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

### getPrivateConnectionId

Required. The private connection identifier.

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

### setPrivateConnectionId

Required. The private connection identifier.

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

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

### getPrivateConnection

Required. The private connection resource to create.

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

### hasPrivateConnection

### clearPrivateConnection

### setPrivateConnection

Required. The private connection resource to create.

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

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

### getRequestId

Optional. A unique ID used to identify the request. If the server receives
two requests with the same ID, then the second request is ignored.

It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
(_), and hyphens (-). The maximum length is 40 characters.

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

### setRequestId

Optional. A unique ID used to identify the request. If the server receives
two requests with the same ID, then the second request is ignored.

It is recommended to always set this value to a UUID.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
(_), and hyphens (-). The maximum length is 40 characters.

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

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

### getSkipValidation

Optional. If set to true, will skip validations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSkipValidation

Optional. If set to true, will skip validations.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent that owns the collection of PrivateConnections. Please see DataMigrationServiceClient::locationName() for help formatting this field. |
| `privateConnection` | `https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.PrivateConnection` Required. The private connection resource to create. |
| `privateConnectionId` | `string` Required. The private connection identifier. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dms/latest/V1.CreatePrivateConnectionRequest` |   |