For Java exists the Project Lombok, it works pretty well for this purpose, you can use getters and setters without polluting the code with auto-generated stuff. Have some other cool features like fluent accessors, builders, auto cleanups for close() and plugins for IDEs. IMHO every Java programmer should check it out.
My favorite is immutables (https://immutables.github.io/). It's really frictionless and at this point it feels like an extension of the language to me.
It also lets you fall back to mutable types when you need them, despite the name.
Or AutoValue (https://github.com/google/auto) for something a bit less involved - Eff. Java 3 recommends it as an alternative to writing equals/hashcode et. all by hand.