# Google Cloud Security Command Center V1 Client - Class SimulatedResource (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class SimulatedResource.

Manually constructed resource name. If the custom module evaluates against
only the resource data, you can omit the `iam_policy_data` field. If it
evaluates only the `iam_policy_data` field, you can omit the resource data.

Generated from protobuf message `google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1 \\ SimulateSecurityHealthAnalyticsCustomModuleRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_type` | `string` Required. The type of the resource, for example, `compute.googleapis.com/Disk`. |
| `↳ resource_data` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format. |
| `↳ iam_policy_data` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Iam.V1.Policy.html` Optional. A representation of the IAM policy. |

### getResourceType

Required. The type of the resource, for example,
`compute.googleapis.com/Disk`.

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

### setResourceType

Required. The type of the resource, for example,
`compute.googleapis.com/Disk`.

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

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

### getResourceData

Optional. A representation of the Google Cloud resource. Should match the
Google Cloud resource JSON format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasResourceData

### clearResourceData

### setResourceData

Optional. A representation of the Google Cloud resource. Should match the
Google Cloud resource JSON format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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

### getIamPolicyData

Optional. A representation of the IAM policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Iam.V1.Policy.html|null` |   |

### hasIamPolicyData

### clearIamPolicyData

### setIamPolicyData

Optional. A representation of the IAM policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Iam.V1.Policy.html` |

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