public TestConnectionResult withConnection(Connection connection) {
        setConnection(connection);
        return this;
    }
<p>
The connection tested.
</p>

@param connection
       The connection tested.
@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/TestConnectionResult.java