public CreateEndpointRequest withEndpointType(String endpointType) {
        setEndpointType(endpointType);
        return this;
    }
<p>
The type of endpoint. Valid values are <code>source</code> and <code>target</code>.
</p>

@param endpointType
       The type of endpoint. Valid values are <code>source</code> and <code>target</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see ReplicationEndpointTypeValue
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/CreateEndpointRequest.java