public PostgreSQLSettings withSlotName(String slotName) {
        setSlotName(slotName);
        return this;
    }
<p>
Sets the name of a previously created logical replication slot for a change data capture (CDC) load of the
PostgreSQL source instance.
</p>
<p>
When used with the <code>CdcStartPosition</code> request parameter for the DMS API , this attribute also makes it
possible to use native CDC start points. DMS verifies that the specified logical replication slot exists before
starting the CDC load task. It also verifies that the task was created with a valid setting of
<code>CdcStartPosition</code>. If the specified slot doesn't exist or the task doesn't have a valid
<code>CdcStartPosition</code> setting, DMS raises an error.
</p>
<p>
For more information about setting the <code>CdcStartPosition</code> request parameter, see <a
href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Task.CDC.html#CHAP_Task.CDC.StartPoint.Native"
>Determining a CDC native start point</a> in the <i>Database Migration Service User Guide</i>. For more
information about using <code>CdcStartPosition</code>, see <a
href="https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationTask.html"
>CreateReplicationTask</a>, <a
href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html"
>StartReplicationTask</a>, and <a
href="https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html"
>ModifyReplicationTask</a>.
</p>

@param slotName
       Sets the name of a previously created logical replication slot for a change data capture (CDC) load of the
       PostgreSQL source instance. </p>
       <p>
       When used with the <code>CdcStartPosition</code> request parameter for the DMS API , this attribute also
       makes it possible to use native CDC start points. DMS verifies that the specified logical replication slot
       exists before starting the CDC load task. It also verifies that the task was created with a valid setting
       of <code>CdcStartPosition</code>. If the specified slot doesn't exist or the task doesn't have a valid
       <code>CdcStartPosition</code> setting, DMS raises an error.
       </p>
       <p>
       For more information about setting the <code>CdcStartPosition</code> request parameter, see <a
       href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Task.CDC.html#CHAP_Task.CDC.StartPoint.Native"
       >Determining a CDC native start point</a> in the <i>Database Migration Service User Guide</i>. For more
       information about using <code>CdcStartPosition</code>, see <a
       href="https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationTask.html"
       >CreateReplicationTask</a>, <a
       href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html"
       >StartReplicationTask</a>, and <a
       href="https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html"
       >ModifyReplicationTask</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/PostgreSQLSettings.java