# Google Cloud Datastream V1 Client - Class CdcStrategy (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class CdcStrategy.

The strategy that the stream uses for CDC replication.

Generated from protobuf message `google.cloud.datastream.v1.CdcStrategy`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ most_recent_start_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.CdcStrategy.MostRecentStartPosition` Optional. Start replicating from the most recent position in the source. |
| `↳ next_available_start_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.CdcStrategy.NextAvailableStartPosition` Optional. Resume replication from the next available position in the source. |
| `↳ specific_start_position` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.CdcStrategy.SpecificStartPosition` Optional. Start replicating from a specific position in the source. |

### getMostRecentStartPosition

Optional. Start replicating from the most recent position in the source.

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

### hasMostRecentStartPosition

### setMostRecentStartPosition

Optional. Start replicating from the most recent position in the source.

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

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

### getNextAvailableStartPosition

Optional. Resume replication from the next available position in the
source.

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

### hasNextAvailableStartPosition

### setNextAvailableStartPosition

Optional. Resume replication from the next available position in the
source.

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

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

### getSpecificStartPosition

Optional. Start replicating from a specific position in the source.

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

### hasSpecificStartPosition

### setSpecificStartPosition

Optional. Start replicating from a specific position in the source.

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

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

### getStartPosition

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