How to replace elasticsearch transport client with opensearch transport client

elasticsearch version 7.8.0
opensearch 1.0.0

What would be the code and library for below example to be implemented in opensearch 1.1.0;

client = new PreBuiltXPackTransportClient(settings)
.addTransportAddress(new TransportAddress(InetAddress.getByName(elasticSearchHost), elasticSearchPort));

Client will change from TransportClient(elasticsearch) to TransportClient(opensearch).

TransportAddress(elasticsearch) to TransportAddress(opensearch).

host and port will point towards opensearch instead of elasticsearch.

How to replace PreBuiltXPackTransportClient from org.elasticsearch.client:x-pack-transport:7.8.0 and with what?

Shah Shahid