We could use records for many of our configuration property classes. A number of classes that are used as DTOs by the actuator endpoints could probably also becomes records. https://github.com/spring-projects/spring-boot/issues/28074 is a prerequisite for using records for configuration properties.
I've labelled this as a task for now. It might become an epic or an enhancement depending on what we decide.