public ReplicationConfig withTargetEndpointArn(String targetEndpointArn) {
        setTargetEndpointArn(targetEndpointArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration.
</p>

@param targetEndpointArn
       The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration.
@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/ReplicationConfig.java