Class LookupDocumentsRequest
java.lang.Object
ai.vectros.resources.documents.requests.LookupDocumentsRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic interfacestatic interface -
Method Summary
-
Method Details
-
getType
- Returns:
- The document type to look up (the
typeof the bound schema).
-
getField
- Returns:
- The field to look up by. Use
externalIdto look up by the document's external identifier, or the name of any lookup field declared on the bound schema.
-
getValue
- Returns:
- Exact value to match. Mutually exclusive with
from/toandprefix. Rejected for a sensitive field — use POST /v1/documents/lookup so the value isn't exposed in the URL.
-
getFrom
- Returns:
- Inclusive lower bound for a range lookup (requires
to; range-enabled, non-sensitive fields only). Mutually exclusive withvalueandprefix.
-
getTo
- Returns:
- Inclusive upper bound for a range lookup (requires
from).
-
getPrefix
- Returns:
- Prefix to match for a prefix lookup (range-enabled string fields only). Mutually exclusive with
valueandfrom/to.
-
getSortFrom
- Returns:
- Inclusive lower bound on the lookup field's sort key, narrowing a
valuematch to documents at or after this point. Use withvalue; combine withsortToto bound both ends. Give the bound in the same form as the sorted field's own values — epoch milliseconds when the lookup sorts bycreatedAtorlastUpdated. Documents with no value for the sorted field are never included in a bounded window.
-
getSortTo
- Returns:
- Inclusive upper bound on the lookup field's sort key, narrowing a
valuematch to documents at or before this point. Use withvalue; combine withsortFrom.
-
getStartFrom
- Returns:
- Pagination cursor. Pass the
nextCursorreturned by the previous page to fetch the next page; omit it for the first page. The cursor is opaque — echo it back unchanged, and do not parse it or construct one. Keep every other query parameter identical while paging: a cursor is valid only for the exact query that returned it, and reusing one against a different query is rejected with a 400.
-
getLimit
- Returns:
- Maximum number of documents to return per page (1-100; defaults to 20).
-
getOrder
- Returns:
- Sort direction for the returned documents:
asc(the default) ordesc.
-
getUserId
- Returns:
- Root API key ONLY: resolve
type's schema as this user would (basedOn-aware shadowing) instead of the shared base — mirrorsGET /v1/schemas?recordType='suserIdselector. Ignored for a scoped credential.
-
getScope
- Returns:
- Root API key ONLY: resolve
type's schema as this scope would, as a singlenamespace:valueentry — mirrorsGET /v1/schemas?recordType='sscopeselector. Ignored for a scoped credential.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-