# Google Cloud Net App V1 Client - Class CreateHostGroupRequest (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class CreateHostGroupRequest.

CreateHostGroupRequest for creating a host group.

Generated from protobuf message `google.cloud.netapp.v1.CreateHostGroupRequest`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent value for CreateHostGroupRequest |
| `↳ host_group` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.HostGroup` Required. Fields of the host group to create. |
| `↳ host_group_id` | `string` Required. ID of the host group to create. Must be unique within the parent resource. Must contain only letters, numbers, and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum. |

### getParent

Required. Parent value for CreateHostGroupRequest

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

### setParent

Required. Parent value for CreateHostGroupRequest

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

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

### getHostGroup

Required. Fields of the host group to create.

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

### hasHostGroup

### clearHostGroup

### setHostGroup

Required. Fields of the host group to create.

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

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

### getHostGroupId

Required. ID of the host group to create. Must be unique within the parent
resource. Must contain only letters, numbers, and hyphen, with
the first character a letter or underscore, the last a letter or underscore
or a number, and a 63 character maximum.

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

### setHostGroupId

Required. ID of the host group to create. Must be unique within the parent
resource. Must contain only letters, numbers, and hyphen, with
the first character a letter or underscore, the last a letter or underscore
or a number, and a 63 character maximum.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for CreateHostGroupRequest Please see NetAppClient::locationName() for help formatting this field. |
| `hostGroup` | `https://docs.cloud.google.com/php/docs/reference/cloud-netapp/latest/V1.HostGroup` Required. Fields of the host group to create. |
| `hostGroupId` | `string` Required. ID of the host group to create. Must be unique within the parent resource. Must contain only letters, numbers, and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum. |

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