# Google Cloud Storage Control V2 Client - Class CreateManagedFolderRequest (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class CreateManagedFolderRequest.

Request message for CreateManagedFolder.

Generated from protobuf message `google.storage.control.v2.CreateManagedFolderRequest`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Name of the bucket this managed folder belongs to. |
| `↳ managed_folder` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.ManagedFolder` Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the `parent` and `managed_folder_id` fields. Populating these fields in `managed_folder` will result in an error. |
| `↳ managed_folder_id` | `string` Required. The name of the managed folder. It uses a single `/` as delimiter and leading and trailing `/` are allowed. |
| `↳ request_id` | `string` Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. |

### getParent

Required. Name of the bucket this managed folder belongs to.

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

### setParent

Required. Name of the bucket this managed folder belongs to.

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

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

### getManagedFolder

Required. Properties of the managed folder being created.

The bucket and managed folder names are specified in the `parent` and
`managed_folder_id` fields. Populating these fields in `managed_folder`
will result in an error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.ManagedFolder|null` |   |

### hasManagedFolder

### clearManagedFolder

### setManagedFolder

Required. Properties of the managed folder being created.

The bucket and managed folder names are specified in the `parent` and
`managed_folder_id` fields. Populating these fields in `managed_folder`
will result in an error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.ManagedFolder` |

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

### getManagedFolderId

Required. The name of the managed folder. It uses a single `/` as delimiter
and leading and trailing `/` are allowed.

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

### setManagedFolderId

Required. The name of the managed folder. It uses a single `/` as delimiter
and leading and trailing `/` are allowed.

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

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

### getRequestId

Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted.

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

### setRequestId

Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Name of the bucket this managed folder belongs to. Please see StorageControlClient::bucketName() for help formatting this field. |
| `managedFolder` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.ManagedFolder` Required. Properties of the managed folder being created. The bucket and managed folder names are specified in the `parent` and `managed_folder_id` fields. Populating these fields in `managed_folder` will result in an error. |
| `managedFolderId` | `string` Required. The name of the managed folder. It uses a single `/` as delimiter and leading and trailing `/` are allowed. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.CreateManagedFolderRequest` |   |