public PostgreSQLSettings withServerName(String serverName) {
        setServerName(serverName);
        return this;
    }
<p>
The host name of the endpoint database.
</p>
<p>
For an Amazon RDS PostgreSQL instance, this is the output of <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html"
>DescribeDBInstances</a>, in the
<code> <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Endpoint.html">Endpoint</a>.Address</code>
field.
</p>
<p>
For an Aurora PostgreSQL instance, this is the output of <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusters.html"
>DescribeDBClusters</a>, in the <code>Endpoint</code> field.
</p>

@param serverName
       The host name of the endpoint database. </p>
       <p>
       For an Amazon RDS PostgreSQL instance, this is the output of <a
       href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html"
       >DescribeDBInstances</a>, in the
       <code> <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Endpoint.html">Endpoint</a>.Address</code>
       field.
       </p>
       <p>
       For an Aurora PostgreSQL instance, this is the output of <a
       href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusters.html"
       >DescribeDBClusters</a>, in the <code>Endpoint</code> field.
@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