# Google Cloud Video Stitcher V1 Client - Class CdnKey (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 CdnKey.

Configuration for a CDN key. Used by the Video Stitcher
to sign URIs for fetching video manifests and signing
media segments for playback.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ google_cdn_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.GoogleCdnKey` The configuration for a Google Cloud CDN key. |
| `↳ akamai_cdn_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.AkamaiCdnKey` The configuration for an Akamai CDN key. |
| `↳ media_cdn_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.MediaCdnKey` The configuration for a Media CDN key. |
| `↳ name` | `string` The resource name of the CDN key, in the form of `projects/{project}/locations/{location}/cdnKeys/{id}`. The name is ignored when creating a CDN key. |
| `↳ hostname` | `string` The hostname this key applies to. |

### getGoogleCdnKey

The configuration for a Google Cloud CDN key.

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

### hasGoogleCdnKey

### setGoogleCdnKey

The configuration for a Google Cloud CDN key.

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

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

### getAkamaiCdnKey

The configuration for an Akamai CDN key.

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

### hasAkamaiCdnKey

### setAkamaiCdnKey

The configuration for an Akamai CDN key.

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

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

### getMediaCdnKey

The configuration for a Media CDN key.

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

### hasMediaCdnKey

### setMediaCdnKey

The configuration for a Media CDN key.

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

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

### getName

The resource name of the CDN key, in the form of
`projects/{project}/locations/{location}/cdnKeys/{id}`.

The name is ignored when creating a CDN key.

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

### setName

The resource name of the CDN key, in the form of
`projects/{project}/locations/{location}/cdnKeys/{id}`.

The name is ignored when creating a CDN key.

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

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

### getHostname

The hostname this key applies to.

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

### setHostname

The hostname this key applies to.

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

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

### getCdnKeyConfig

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