# Google Cloud Security Command Center V1 Client - Class CreateNotificationConfigRequest (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class CreateNotificationConfigRequest.

Request message for creating a notification config.

Generated from protobuf message `google.cloud.securitycenter.v1.CreateNotificationConfigRequest`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name of the new notification config's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. |
| `↳ config_id` | `string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
| `↳ notification_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |

### getParent

Required. Resource name of the new notification config's parent. Its format
is `organizations/[organization_id]`, `folders/[folder_id]`, or
`projects/[project_id]`.

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

### setParent

Required. Resource name of the new notification config's parent. Its format
is `organizations/[organization_id]`, `folders/[folder_id]`, or
`projects/[project_id]`.

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

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

### getConfigId

Required.

Unique identifier provided by the client within the parent scope.
It must be between 1 and 128 characters and contain alphanumeric
characters, underscores, or hyphens only.

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

### setConfigId

Required.

Unique identifier provided by the client within the parent scope.
It must be between 1 and 128 characters and contain alphanumeric
characters, underscores, or hyphens only.

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

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

### getNotificationConfig

Required. The notification config being created. The name and the service
account will be ignored as they are both output only fields on this
resource.

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

### hasNotificationConfig

### clearNotificationConfig

### setNotificationConfig

Required. The notification config being created. The name and the service
account will be ignored as they are both output only fields on this
resource.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the new notification config's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. Please see SecurityCenterClient::projectName() for help formatting this field. |
| `configId` | `string` Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. |
| `notificationConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CreateNotificationConfigRequest` |   |

### static::buildFromParentNotificationConfig

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the new notification config's parent. Its format is `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. Please see SecurityCenterClient::projectName() for help formatting this field. |
| `notificationConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.NotificationConfig` Required. The notification config being created. The name and the service account will be ignored as they are both output only fields on this resource. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CreateNotificationConfigRequest` |   |