@SuppressWarnings("unchecked") public B value(final T value) { getInstance().setValue(value); return (B) this; } }
public Builder relationshipTO(final RelationshipTO relationshipTO) { getInstance().setRelationshipTO(relationshipTO); return this; } }
public P build() { if (getInstance().getOperation() == null) { instance.setOperation(PatchOperation.ADD_REPLACE); } return getInstance(); } }
@Override protected GroupPatch newPatch(final String key) { GroupPatch patch = new GroupPatch(); patch.setKey(key); return patch; }
@Override protected AnyObjectPatch newPatch(final String key) { AnyObjectPatch patch = new AnyObjectPatch(); patch.setKey(key); return patch; }
public Builder key(final String key) { getInstance().setKey(key); return this; }
public Builder onSyncope(final boolean onSyncope) { getInstance().setOnSyncope(onSyncope); return this; }
public Builder action(final ResourceAssociationAction action) { getInstance().setAction(action); return this; } }
@SuppressWarnings("unchecked") public B operation(final PatchOperation operation) { getInstance().setOperation(operation); return (B) this; }
public Builder group(final String group) { getInstance().setGroup(group); return this; } }
public Builder token(final String token) { getInstance().setToken(token); return this; } }
public Builder key(final String key) { getInstance().setKey(key); return this; }
public Builder type(final StatusPatchType type) { getInstance().setType(type); return this; }
public Builder attrTO(final AttrTO attrTO) { getInstance().setAttrTO(attrTO); return this; }
@Override protected StringPatchItem newInstance() { return new StringPatchItem(); } }
protected P getInstance() { if (instance == null) { instance = newInstance(); } return instance; }
@Override protected StringReplacePatchItem newInstance() { return new StringReplacePatchItem(); } }
@Override protected LongPatchItem newInstance() { return new LongPatchItem(); } }
@Override public boolean isEmpty() { return super.isEmpty() && name == null && userOwner == null && groupOwner == null; }