0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class CreateApiHubInstanceRequest.

The
[CreateApiHubInstance](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ProvisioningClient#_Google_Cloud_ApiHub_V1_Client_ProvisioningClient__createApiHubInstance__)
method's request.

Generated from protobuf message `google.cloud.apihub.v1.CreateApiHubInstanceRequest`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}` |
| `↳ api_hub_instance_id` | `string` Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used. This value should be 4-40 characters, and valid characters are `/[a-z][A-Z][0-9]-_/`. |
| `↳ api_hub_instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ApiHubInstance` Required. The ApiHub instance. |

### getParent

Required. The parent resource for the Api Hub instance resource.

Format: `projects/{project}/locations/{location}`

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

### setParent

Required. The parent resource for the Api Hub instance resource.

Format: `projects/{project}/locations/{location}`

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

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

### getApiHubInstanceId

Optional. Identifier to assign to the Api Hub instance. Must be unique
within scope of the parent resource. If the field is not provided, system
generated id will be used.

This value should be 4-40 characters, and valid characters
are `/[a-z][A-Z][0-9]-_/`.

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

### setApiHubInstanceId

Optional. Identifier to assign to the Api Hub instance. Must be unique
within scope of the parent resource. If the field is not provided, system
generated id will be used.

This value should be 4-40 characters, and valid characters
are `/[a-z][A-Z][0-9]-_/`.

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

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

### getApiHubInstance

Required. The ApiHub instance.

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

### hasApiHubInstance

### clearApiHubInstance

### setApiHubInstance

Required. The ApiHub instance.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}` Please see ProvisioningClient::locationName() for help formatting this field. |
| `apiHubInstance` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ApiHubInstance` Required. The ApiHub instance. |
| `apiHubInstanceId` | `string` Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used. This value should be 4-40 characters, and valid characters are `/[a-z][A-Z][0-9]-_/`. |

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