# Google Cloud Security Center Management V1 Client - Class CreateSecurityHealthAnalyticsCustomModuleRequest (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.3 1.0.0 0.3.2 0.2.7 0.1.0 Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class CreateSecurityHealthAnalyticsCustomModuleRequest.

Request message for
[SecurityCenterManagement.CreateSecurityHealthAnalyticsCustomModule](https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.Client.SecurityCenterManagementClient#_Google_Cloud_SecurityCenterManagement_V1_Client_SecurityCenterManagementClient__createSecurityHealthAnalyticsCustomModule__).

Generated from protobuf message `google.cloud.securitycentermanagement.v1.CreateSecurityHealthAnalyticsCustomModuleRequest`

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Name of the parent organization, folder, or project of the module, in one of the following formats: \* \* `organizations/{organization}/locations/{location}` \* \* `folders/{folder}/locations/{location}` \* \* `projects/{project}/locations/{location}` |
| `↳ security_health_analytics_custom_module` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityHealthAnalyticsCustomModule` Required. The resource being created. |
| `↳ validate_only` | `bool` Optional. When set to `true`, the request will be validated (including IAM checks), but no module will be created. An `OK` response indicates that the request is valid, while an error response indicates that the request is invalid. If the request is valid, a subsequent request to create the module could still fail for one of the following reasons: \* \* The state of your cloud resources changed; for example, you lost a required IAM permission \* \* An error occurred during creation of the module Defaults to `false`. |

### getParent

Required. Name of the parent organization, folder, or project of the
module, in one of the following formats:

- `organizations/{organization}/locations/{location}`
- `folders/{folder}/locations/{location}`
- `projects/{project}/locations/{location}`

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

### setParent

Required. Name of the parent organization, folder, or project of the
module, in one of the following formats:

- `organizations/{organization}/locations/{location}`
- `folders/{folder}/locations/{location}`
- `projects/{project}/locations/{location}`

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

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

### getSecurityHealthAnalyticsCustomModule

Required. The resource being created.

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

### hasSecurityHealthAnalyticsCustomModule

### clearSecurityHealthAnalyticsCustomModule

### setSecurityHealthAnalyticsCustomModule

Required. The resource being created.

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

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

### getValidateOnly

Optional. When set to `true`, the request will be validated (including IAM
checks), but no module will be created. An `OK` response indicates that the
request is valid, while an error response indicates that the request is
invalid.

If the request is valid, a subsequent request to create the module could
still fail for one of the following reasons:

- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module Defaults to `false`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. When set to `true`, the request will be validated (including IAM
checks), but no module will be created. An `OK` response indicates that the
request is valid, while an error response indicates that the request is
invalid.

If the request is valid, a subsequent request to create the module could
still fail for one of the following reasons:

- The state of your cloud resources changed; for example, you lost a required IAM permission
- An error occurred during creation of the module Defaults to `false`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Name of the parent organization, folder, or project of the module, in one of the following formats: - - `organizations/{organization}/locations/{location}` - - `folders/{folder}/locations/{location}` - - `projects/{project}/locations/{location}` Please see SecurityCenterManagementClient::organizationLocationName() for help formatting this field. |
| `securityHealthAnalyticsCustomModule` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityHealthAnalyticsCustomModule` Required. The resource being created. |

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