Is there any GCP API or GCP Java Client methods for getting Committed-use discounts details and resources for which CUD's applied?
Currently there is no such GCP API or GCP Java Client methods for getting committed-use discounts details and resources. As this is a valid and most useful request to achieve this, you can fill a Feature Request in GCP IssueTracker to create this possibility.
You can refer to the below Google documentation for relevant info which might be helpful to you: