# Google Cloud Data Fusion V1 Client - Class CreateInstanceRequest (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.6.5 0.5.2 0.4.1 0.3.0 0.2.11 Reference documentation and code samples for the Google Cloud Data Fusion V1 Client class CreateInstanceRequest.

Request message for creating a Data Fusion instance.

Generated from protobuf message `google.cloud.datafusion.v1.CreateInstanceRequest`

## Namespace

Google \\ Cloud \\ DataFusion \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The instance's project and location in the format projects/{project}/locations/{location}. |
| `↳ instance_id` | `string` Required. The name of the instance to create. |
| `↳ instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.Instance` An instance resource. |

### getParent

Required. The instance's project and location in the format
projects/{project}/locations/{location}.

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

### setParent

Required. The instance's project and location in the format
projects/{project}/locations/{location}.

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

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

### getInstanceId

Required. The name of the instance to create.

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

### setInstanceId

Required. The name of the instance to create.

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

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

### getInstance

An instance resource.

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

### hasInstance

### clearInstance

### setInstance

An instance resource.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The instance's project and location in the format projects/{project}/locations/{location}. Please see DataFusionClient::locationName() for help formatting this field. |
| `instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.Instance` An instance resource. |
| `instanceId` | `string` Required. The name of the instance to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.CreateInstanceRequest` |   |