# Google Cloud Resource Manager V3 Client - Class CreateTagHoldRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.8.5 0.7.2 0.6.1 0.5.0 0.4.1 0.3.9 Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class CreateTagHoldRequest.

The request message to create a TagHold.

Generated from protobuf message `google.cloud.resourcemanager.v3.CreateTagHoldRequest`

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the TagHold's parent TagValue. Must be of the form: `tagValues/{tag-value-id}`. |
| `↳ tag_hold` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagHold` Required. The TagHold to be created. |
| `↳ validate_only` | `bool` Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. |

### getParent

Required. The resource name of the TagHold's parent TagValue. Must be of
the form: `tagValues/{tag-value-id}`.

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

### setParent

Required. The resource name of the TagHold's parent TagValue. Must be of
the form: `tagValues/{tag-value-id}`.

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

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

### getTagHold

Required. The TagHold to be created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagHold|null` |   |

### hasTagHold

### clearTagHold

### setTagHold

Required. The TagHold to be created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagHold` |

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

### getValidateOnly

Optional. Set to true to perform the validations necessary for creating the
resource, but not actually perform the action.

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

### setValidateOnly

Optional. Set to true to perform the validations necessary for creating the
resource, but not actually perform the action.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the TagHold's parent TagValue. Must be of the form: `tagValues/{tag-value-id}`. Please see TagHoldsClient::tagValueName() for help formatting this field. |
| `tagHold` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagHold` Required. The TagHold to be created. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.CreateTagHoldRequest` |   |