# Google Cloud Policy Simulator V1 Client - Class CreateReplayRequest (1.3.4)

1.3.4 (latest) 1.3.3 1.2.0 1.1.1 1.0.3 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class CreateReplayRequest.

Request message for
[Simulator.CreateReplay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Client.SimulatorClient#_Google_Cloud_PolicySimulator_V1_Client_SimulatorClient__createReplay__).

Generated from protobuf message `google.cloud.policysimulator.v1.CreateReplayRequest`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this [Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` |
| `↳ replay` | `https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay` Required. The [Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) to create. Set `Replay.ReplayConfig` to configure the replay. |

### getParent

Required. The parent resource where this
[Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) will be created. This
resource must be a project, folder, or organization with a location.

Example: `projects/my-example-project/locations/global`

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

### setParent

Required. The parent resource where this
[Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) will be created. This
resource must be a project, folder, or organization with a location.

Example: `projects/my-example-project/locations/global`

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

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

### getReplay

Required. The [Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) to create.

Set `Replay.ReplayConfig` to configure the replay.

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

### hasReplay

### clearReplay

### setReplay

Required. The [Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) to create.

Set `Replay.ReplayConfig` to configure the replay.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this [Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) will be created. This resource must be a project, folder, or organization with a location. Example: `projects/my-example-project/locations/global` |
| `replay` | `https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay` Required. The [Replay](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.Replay) to create. Set `Replay.ReplayConfig` to configure the replay. |

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