public ConnectionDescription withConnectionId(final ConnectionId connectionId) {
        notNull("connectionId", connectionId);
        return new ConnectionDescription(connectionId, serverVersion, maxWireVersion, serverType, maxBatchCount, maxDocumentSize,
                maxMessageSize, compressors);
    }
public ConnectionDescription withConnectionId(final ConnectionId connectionId) {
        notNull("connectionId", connectionId);
        return new ConnectionDescription(connectionId, serverVersion, maxWireVersion, serverType, maxBatchCount, maxDocumentSize,
                maxMessageSize, compressors);
    }
public ConnectionDescription withConnectionId ( final ConnectionId connectionId ) { notNull ( "connectionId" , connectionId ) ; return new ConnectionDescription ( connectionId , serverVersion , maxWireVersion , serverType , maxBatchCount , maxDocumentSize , maxMessageSize , compressors ) ; }
Creates a new connection description with the set connection id

@param connectionId the connection id
@return the new connection description
@since 3.8
Creates a new connection description with the set connection id