public CreateEndpointResult withEndpoint(Endpoint endpoint) {
        setEndpoint(endpoint);
        return this;
    }
<p>
The endpoint that was created.
</p>

@param endpoint
       The endpoint that was created.
@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/CreateEndpointResult.java