How to create index using elastic client

I am working on creating an index with required mapping. Currently, I am able to do with curl -X PUT command but I am exploring the use of creating index using the elastic client.

Please let me know.

Thanks,
Rajeev

Which client?