0.11.3 (latest) 0.10.0 0.9.3 0.8.2 0.7.1 0.6.6 0.5.1 0.4.1 0.3.10

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class SnapshotJobRequest.

Request to create a snapshot of a job.

Generated from protobuf message `google.dataflow.v1beta3.SnapshotJobRequest`

## Namespace

Google \\ Cloud \\ Dataflow \\ V1beta3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ project_id` | `string` The project which owns the job to be snapshotted. |
| `↳ job_id` | `string` The job to be snapshotted. |
| `↳ ttl` | `Google\Protobuf\Duration` TTL for the snapshot. |
| `↳ location` | `string` The location that contains this job. |
| `↳ snapshot_sources` | `bool` If true, perform snapshots for sources which support this. |
| `↳ description` | `string` User specified description of the snapshot. Maybe empty. |

### getProjectId

The project which owns the job to be snapshotted.

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

### setProjectId

The project which owns the job to be snapshotted.

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

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

### getJobId

The job to be snapshotted.

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

### setJobId

The job to be snapshotted.

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

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

### getTtl

TTL for the snapshot.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Duration|null` |   |

### hasTtl

### clearTtl

### setTtl

TTL for the snapshot.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Duration` |

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

### getLocation

The location that contains this job.

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

### setLocation

The location that contains this job.

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

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

### getSnapshotSources

If true, perform snapshots for sources which support this.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSnapshotSources

If true, perform snapshots for sources which support this.

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

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

### getDescription

User specified description of the snapshot. Maybe empty.

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

### setDescription

User specified description of the snapshot. Maybe empty.

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

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