Hi Michael Wei
Thank you for confirming. I could not find any samples on creating Document intelligence resource using Java.
But we can use CLI command to create document intelligence or other Cognitive service resources.
az cognitiveservices account create \
--name <resource-name> \
--resource-group <resource-group-name> \
--kind FormRecognizer \
--sku <sku> \
--location <location> \
--yes
Post which we can consume those endpoints with client initiated with key authorization.
Please let us know if you can accept the limitation and consider this acceptable answer.
Thank you