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

Manually constructed information about a resource.

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

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ 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. If the custom module evaluates only the IAM allow policy, then you can omit this field. |
| `↳ 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 allow policy. If the custom module evaluates only the resource data, then you can omit this field. |

### 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.

If the custom module evaluates only the IAM allow policy, then you can
omit this field.

| **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.

If the custom module evaluates only the IAM allow policy, then you can
omit this field.

| **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 allow policy.

If the custom module evaluates only the resource data, then you can omit
this field.

| **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 allow policy.

If the custom module evaluates only the resource data, then you can omit
this field.

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

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