# Google Cloud Video Stitcher V1 Client - Class CreateCdnKeyRequest (1.2.0)

1.2.0 (latest) 1.1.2 1.0.4 0.9.1 0.8.4 0.7.3 0.6.2 0.5.1 0.3.4 Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class CreateCdnKeyRequest.

Request message for VideoStitcherService.createCdnKey.

Generated from protobuf message `google.cloud.video.stitcher.v1.CreateCdnKeyRequest`

## Namespace

Google \\ Cloud \\ Video \\ Stitcher \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The project in which the CDN key should be created, in the form of `projects/{project_number}/locations/{location}`. |
| `↳ cdn_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.CdnKey` Required. The CDN key resource to create. |
| `↳ cdn_key_id` | `string` Required. The ID to use for the CDN key, which will become the final component of the CDN key's resource name. This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |

### getParent

Required. The project in which the CDN key should be created, in the form
of `projects/{project_number}/locations/{location}`.

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

### setParent

Required. The project in which the CDN key should be created, in the form
of `projects/{project_number}/locations/{location}`.

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

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

### getCdnKey

Required. The CDN key resource to create.

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

### hasCdnKey

### clearCdnKey

### setCdnKey

Required. The CDN key resource to create.

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

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

### getCdnKeyId

Required. The ID to use for the CDN key, which will become the final
component of the CDN key's resource name.

This value should conform to RFC-1034, which restricts to
lower-case letters, numbers, and hyphen, with the first character a
letter, the last a letter or a number, and a 63 character maximum.

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

### setCdnKeyId

Required. The ID to use for the CDN key, which will become the final
component of the CDN key's resource name.

This value should conform to RFC-1034, which restricts to
lower-case letters, numbers, and hyphen, with the first character a
letter, the last a letter 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. The project in which the CDN key should be created, in the form of `projects/{project_number}/locations/{location}`. Please see VideoStitcherServiceClient::locationName() for help formatting this field. |
| `cdnKey` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.CdnKey` Required. The CDN key resource to create. |
| `cdnKeyId` | `string` Required. The ID to use for the CDN key, which will become the final component of the CDN key's resource name. This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.CreateCdnKeyRequest` |   |