# Google Cloud Network Management V1 Client - Class CreateVpcFlowLogsConfigRequest (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class CreateVpcFlowLogsConfigRequest.

Request for the `CreateVpcFlowLogsConfig` method.

Generated from protobuf message `google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource of the VpcFlowLogsConfig to create, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global` |
| `↳ vpc_flow_logs_config_id` | `string` Required. ID of the `VpcFlowLogsConfig`. |
| `↳ vpc_flow_logs_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.VpcFlowLogsConfig` Required. A `VpcFlowLogsConfig` resource |

### getParent

Required. The parent resource of the VpcFlowLogsConfig to create,
in one of the following formats:

- For project-level resources: `projects/{project_id}/locations/global`
- For organization-level resources: `organizations/{organization_id}/locations/global`

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

### setParent

Required. The parent resource of the VpcFlowLogsConfig to create,
in one of the following formats:

- For project-level resources: `projects/{project_id}/locations/global`
- For organization-level resources: `organizations/{organization_id}/locations/global`

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

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

### getVpcFlowLogsConfigId

Required. ID of the `VpcFlowLogsConfig`.

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

### setVpcFlowLogsConfigId

Required. ID of the `VpcFlowLogsConfig`.

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

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

### getVpcFlowLogsConfig

Required. A `VpcFlowLogsConfig` resource

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

### hasVpcFlowLogsConfig

### clearVpcFlowLogsConfig

### setVpcFlowLogsConfig

Required. A `VpcFlowLogsConfig` resource

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource of the VpcFlowLogsConfig to create, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global` Please see VpcFlowLogsServiceClient::organizationLocationName() for help formatting this field. |
| `vpcFlowLogsConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.VpcFlowLogsConfig` Required. A `VpcFlowLogsConfig` resource |
| `vpcFlowLogsConfigId` | `string` Required. ID of the `VpcFlowLogsConfig`. Please see VpcFlowLogsServiceClient::vpcFlowLogsConfigName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.CreateVpcFlowLogsConfigRequest` |   |