I've just solved it using this way:
@Value
@Builder(setterPrefix = "with")
@JsonDeserialize(builder = Clazz.ClazzBuilder.class)
public class Clazz {
private String field;
}
In that case, you have to use the builder methods like withField(...)
, which is the default behaviour used by jackson.