Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] [java] Fluent client method builder #18186

Open
gdupontf opened this issue Mar 21, 2024 · 0 comments
Open

[REQ] [java] Fluent client method builder #18186

gdupontf opened this issue Mar 21, 2024 · 0 comments

Comments

@gdupontf
Copy link

gdupontf commented Mar 21, 2024

Is your feature request related to a problem? Please describe.

N/A

Describe the solution you'd like

I'd like to have an option to allow generation of fluent builders for each operation.

This might tie well with #18032.

Describe alternatives you've considered

I can emulate this with a custom template that adds Lombok's Builder on instance methods, with builder class name and build method name that reference operatioId and the 2 variant suffixes. Change build method to something like invoke and you have something that works.

Additional context

Making this a feature here instead of relying on Lombok means we could generate staged builders for handling required parameters.

I'd like this backported to 6.x.

If you find it worthwhile, on a more general purpose level, some kind of parameter object + staged builder combo annotation processor might be more useful for the community at large.

@gdupontf gdupontf changed the title [REQ] [java] Fluent method builder [REQ] [java] Fluent client method builder Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant