public ApiKeyCredentials setApiKey(String value) {
   SchemaSanitizer.throwOnNull(FIELD_APIKEY, value);
   value = SchemaSanitizer.trim(value);
   // TODO With proper compare
   // if ( this._apiKey == value ) return this;
   this._apiKey = value;
   setDirty(FIELD_APIKEY);
   return this;
 }
 public Callback setUrl(String value) {
   SchemaSanitizer.throwOnNull(FIELD_URL, value);
   value = SchemaSanitizer.trim(value);
   // TODO With proper compare
   // if ( this._url == value ) return this;
   this._url = value;
   setDirty(FIELD_URL);
   return this;
 }
 public Callback setKey(String value) {
   SchemaSanitizer.throwOnNull(FIELD_KEY, value);
   value = SchemaSanitizer.trim(value);
   // TODO With proper compare
   // if ( this._key == value ) return this;
   this._key = value;
   setDirty(FIELD_KEY);
   return this;
 }
 public Document setDescription(String value) {
   SchemaSanitizer.throwOnNull(FIELD_DESCRIPTION, value);
   value = SchemaSanitizer.sanitize(value);
   value = SchemaSanitizer.trim(value);
   // TODO With proper compare
   // if ( this._description == value ) return this;
   this._description = value;
   setDirty(FIELD_DESCRIPTION);
   return this;
 }
 public Document setApprovals(List<Approval> value) {
   SchemaSanitizer.throwOnNull(FIELD_APPROVALS, value);
   // TODO With proper compare
   // if ( this._approvals == value ) return this;
   this._approvals = value;
   setDirty(FIELD_APPROVALS);
   return this;
 }
 public Document setSize(Integer value) {
   SchemaSanitizer.throwOnNull(FIELD_SIZE, value);
   // TODO With proper compare
   // if ( this._size == value ) return this;
   this._size = value;
   setDirty(FIELD_SIZE);
   return this;
 }
 public Document setPages(List<Page> value) {
   SchemaSanitizer.throwOnNull(FIELD_PAGES, value);
   // TODO With proper compare
   // if ( this._pages == value ) return this;
   this._pages = value;
   setDirty(FIELD_PAGES);
   return this;
 }
 public Document setIndex(Integer value) {
   SchemaSanitizer.throwOnNull(FIELD_INDEX, value);
   // TODO With proper compare
   // if ( this._index == value ) return this;
   this._index = value;
   setDirty(FIELD_INDEX);
   return this;
 }
 public Document setFields(List<Field> value) {
   SchemaSanitizer.throwOnNull(FIELD_FIELDS, value);
   // TODO With proper compare
   // if ( this._fields == value ) return this;
   this._fields = value;
   setDirty(FIELD_FIELDS);
   return this;
 }
 public Document setExtract(Boolean value) {
   SchemaSanitizer.throwOnNull(FIELD_EXTRACT, value);
   // TODO With proper compare
   // if ( this._extract == value ) return this;
   this._extract = value;
   setDirty(FIELD_EXTRACT);
   return this;
 }
 public Callback setEvents(List<String> value) {
   SchemaSanitizer.throwOnNull(FIELD_EVENTS, value);
   // TODO With proper compare
   // if ( this._events == value ) return this;
   this._events = value;
   setDirty(FIELD_EVENTS);
   return this;
 }