record (String name) { public static PersonBuilder builder() { return new Person.PersonBuilder(); } public static class PersonBuilder { private String name; PersonBuilder() { } public PersonBuilder name(String name) { this.name = name; return this; } public Person build() { return new Person(this.name); } public String toString() { return "Person.PersonBuilder(name=" + this.name + ")"; } } }