@Builder(builderMethodName = "mandatoryBuilder")
@ToString
public class MyClass {
private String name;
private String identifier;
public String getName() {
return name;
}
public String getIdentifier() {
return identifier;
}
public static MyClassBuilder builder(String identifier) {
return mandatoryBuilder().identifier(identifier);
}
}