# Google Cloud Security Compliance V1 Client - Class CreateCloudControlRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class CreateCloudControlRequest.

The request message for CreateCloudControl.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource name, in one of the following formats: - `organizations/{organization}/locations/{location}`. - `projects/{project}/locations/{location}`. The only supported location is `global`. |
| `↳ cloud_control_id` | `string` Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. |
| `↳ cloud_control` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CloudControl` Required. The cloud control that's being created. |

### getParent

Required. The parent resource name, in one of the following formats:

- `organizations/{organization}/locations/{location}`.

- `projects/{project}/locations/{location}`.
  The only supported location is `global`.

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

### setParent

Required. The parent resource name, in one of the following formats:

- `organizations/{organization}/locations/{location}`.

- `projects/{project}/locations/{location}`.
  The only supported location is `global`.

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

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

### getCloudControlId

Required. The identifier for the cloud control, which is the last segment
of the cloud control name. The format is
`^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.

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

### setCloudControlId

Required. The identifier for the cloud control, which is the last segment
of the cloud control name. The format is
`^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.

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

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

### getCloudControl

Required. The cloud control that's being created.

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

### hasCloudControl

### clearCloudControl

### setCloudControl

Required. The cloud control that's being created.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource name, in one of the following formats: - `organizations/{organization}/locations/{location}`. - `projects/{project}/locations/{location}`. The only supported location is `global`. Please see ConfigClient::organizationLocationName() for help formatting this field. |
| `cloudControl` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CloudControl` Required. The cloud control that's being created. |
| `cloudControlId` | `string` Required. The identifier for the cloud control, which is the last segment of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.CreateCloudControlRequest` |   |