/** * If setRestrictApiToFieldType is true, api code only generates {@code get<FieldName>} with return type as per schema * * Defaults to false to be backwards compatible * * @param restrictApiToFieldType true if applied. */ public void setRestrictApiToFieldType(boolean restrictApiToFieldType) { config.setRestrictApiToFieldType(restrictApiToFieldType); }
/** * NOTE: Have to be enabled with withErgonomicShortcuts * @return this builder */ public B withRestrictApiToFieldType() { config.setRestrictApiToFieldType(true); return getBuilder(); }