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

Attack path simulation

Generated from protobuf message `google.cloud.securitycenter.v1.Simulation`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Full resource name of the Simulation: `organizations/123/simulations/456` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time simulation was created |
| `↳ resource_value_configs_metadata` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValueConfigMetadata>` Resource value configurations' metadata used in this simulation. Maximum of 100. |
| `↳ cloud_provider` | `int` Indicates which cloud provider was used in this simulation. |

### getName

Full resource name of the Simulation:
`organizations/123/simulations/456`

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

### setName

Full resource name of the Simulation:
`organizations/123/simulations/456`

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

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

### getCreateTime

Output only. Time simulation was created

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time simulation was created

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

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

### getResourceValueConfigsMetadata

Resource value configurations' metadata used in this simulation. Maximum of
100.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValueConfigMetadata>` |   |

### setResourceValueConfigsMetadata

Resource value configurations' metadata used in this simulation. Maximum of
100.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValueConfigMetadata>` |

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

### getCloudProvider

Indicates which cloud provider was used in this simulation.

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

### setCloudProvider

Indicates which cloud provider was used in this simulation.

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

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