public DBCluster withEndpoint(String endpoint) {
        setEndpoint(endpoint);
        return this;
    }
<p>
Specifies the connection endpoint for the primary instance of the cluster.
</p>

@param endpoint
       Specifies the connection endpoint for the primary instance of the cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/DBCluster.java