# Datastream V1 API - Class Google::Cloud::Datastream::V1::CdcStrategy (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Datastream V1 API class Google::Cloud::Datastream::V1::CdcStrategy.

The strategy that the stream uses for CDC replication.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #most_recent_start_position

    def most_recent_start_position() -> ::Google::Cloud::Datastream::V1::CdcStrategy::MostRecentStartPosition

**Returns**

- ([::Google::Cloud::Datastream::V1::CdcStrategy::MostRecentStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-MostRecentStartPosition)) --- Optional. Start replicating from the most recent position in the source.


  Note: The following fields are mutually exclusive: `most_recent_start_position`, `next_available_start_position`, `specific_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #most_recent_start_position=

    def most_recent_start_position=(value) -> ::Google::Cloud::Datastream::V1::CdcStrategy::MostRecentStartPosition

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::CdcStrategy::MostRecentStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-MostRecentStartPosition)) --- Optional. Start replicating from the most recent position in the source.


  Note: The following fields are mutually exclusive: `most_recent_start_position`, `next_available_start_position`, `specific_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::CdcStrategy::MostRecentStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-MostRecentStartPosition)) --- Optional. Start replicating from the most recent position in the source.


  Note: The following fields are mutually exclusive: `most_recent_start_position`, `next_available_start_position`, `specific_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #next_available_start_position

    def next_available_start_position() -> ::Google::Cloud::Datastream::V1::CdcStrategy::NextAvailableStartPosition

**Returns**

- ([::Google::Cloud::Datastream::V1::CdcStrategy::NextAvailableStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-NextAvailableStartPosition)) --- Optional. Resume replication from the next available position in the source.


  Note: The following fields are mutually exclusive: `next_available_start_position`, `most_recent_start_position`, `specific_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #next_available_start_position=

    def next_available_start_position=(value) -> ::Google::Cloud::Datastream::V1::CdcStrategy::NextAvailableStartPosition

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::CdcStrategy::NextAvailableStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-NextAvailableStartPosition)) --- Optional. Resume replication from the next available position in the source.


  Note: The following fields are mutually exclusive: `next_available_start_position`, `most_recent_start_position`, `specific_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::CdcStrategy::NextAvailableStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-NextAvailableStartPosition)) --- Optional. Resume replication from the next available position in the source.


  Note: The following fields are mutually exclusive: `next_available_start_position`, `most_recent_start_position`, `specific_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #specific_start_position

    def specific_start_position() -> ::Google::Cloud::Datastream::V1::CdcStrategy::SpecificStartPosition

**Returns**

- ([::Google::Cloud::Datastream::V1::CdcStrategy::SpecificStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-SpecificStartPosition)) --- Optional. Start replicating from a specific position in the source.


  Note: The following fields are mutually exclusive: `specific_start_position`, `most_recent_start_position`, `next_available_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #specific_start_position=

    def specific_start_position=(value) -> ::Google::Cloud::Datastream::V1::CdcStrategy::SpecificStartPosition

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1::CdcStrategy::SpecificStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-SpecificStartPosition)) --- Optional. Start replicating from a specific position in the source.


  Note: The following fields are mutually exclusive: `specific_start_position`, `most_recent_start_position`, `next_available_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1::CdcStrategy::SpecificStartPosition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1/latest/Google-Cloud-Datastream-V1-CdcStrategy-SpecificStartPosition)) --- Optional. Start replicating from a specific position in the source.


  Note: The following fields are mutually exclusive: `specific_start_position`, `most_recent_start_position`, `next_available_start_position`. If a field in that set is populated, all other fields in the set will automatically be cleared.