# Google Cloud Security Center Management V1 Client - Class ModuleSettings (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 ModuleSettings.

The settings for individual modules.

Generated from protobuf message `google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings`

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ V1 \\ SecurityCenterService

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ intended_enablement_state` | `int` Optional. The intended enablement state for the module at its level of the resource hierarchy. |
| `↳ effective_enablement_state` | `int` Output only. The effective enablement state for the module at its level of the resource hierarchy. If the intended state is set to `INHERITED`, the effective state will be inherited from the enablement state of an ancestor. This state may differ from the intended enablement state due to billing eligibility or onboarding status. |

### getIntendedEnablementState

Optional. The intended enablement state for the module at its level of
the resource hierarchy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EnablementState](https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService.EnablementState). |

### setIntendedEnablementState

Optional. The intended enablement state for the module at its level of
the resource hierarchy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EnablementState](https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService.EnablementState). |

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

### getEffectiveEnablementState

Output only. The effective enablement state for the module at its level
of the resource hierarchy. If the intended state is set to `INHERITED`,
the effective state will be inherited from the enablement state of an
ancestor. This state may differ from the intended enablement state due to
billing eligibility or onboarding status.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [EnablementState](https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService.EnablementState). |

### setEffectiveEnablementState

Output only. The effective enablement state for the module at its level
of the resource hierarchy. If the intended state is set to `INHERITED`,
the effective state will be inherited from the enablement state of an
ancestor. This state may differ from the intended enablement state due to
billing eligibility or onboarding status.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [EnablementState](https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SecurityCenterService.EnablementState). |

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