Java client and custom resources

Hi all,

Is there any guide or example somewhere that describes how to use the Java client libraries ( to create or modify custom resources in the cluster?

I would rather use a generic API to upload a yaml spec (without generating a CRD-specific API), but I can’t seem to find any example… basically I am looking for the java equivalent of
kubectl apply -f resource.yaml