The first one is a documentation problem. AMQPConnectionDetails is deprecated so the documentation should document how to migrate away from using it not how to use it.
The second is about builders. It is easy to create an AMQPComponent based on an amqp URI using one of the versions of AMQPComponent.amqpComponent, but hard to do so using the Component DSL as no uri option are available when usingComponentsBuilderFactory.amqp()