Class LookupRecordsRequest.Builder
- All Implemented Interfaces:
LookupRecordsRequest._FinalStage,LookupRecordsRequest.FieldStage,LookupRecordsRequest.TypeStage
- Enclosing class:
LookupRecordsRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()The name of the lookup field to match on, as declared on the type's schema.from(LookupRecordsRequest other) Inclusive lower bound of a range lookup (requiresto; non-sensitive fields only).Inclusive lower bound of a range lookup (requiresto; non-sensitive fields only).includePayload(String includePayload) Set totrueto include each record's full payload, rehydrating any payloads stored externally (capped per page).includePayload(Optional<String> includePayload) Set totrueto include each record's full payload, rehydrating any payloads stored externally (capped per page).Maximum number of records to return per page.Maximum number of records to return per page.order(LookupRecordsRequestOrder order) Sort direction by the field's value:asc(ascending, the default) ordesc(descending).order(Optional<LookupRecordsRequestOrder> order) Sort direction by the field's value:asc(ascending, the default) ordesc(descending).Prefix to match (string, non-sensitive fields only).Prefix to match (string, non-sensitive fields only).Inclusive lower bound on the lookup field's sort key, narrowing avaluematch to records at or after this point.Inclusive lower bound on the lookup field's sort key, narrowing avaluematch to records at or after this point.Inclusive upper bound on the lookup field's sort key, narrowing avaluematch to records at or before this point.Inclusive upper bound on the lookup field's sort key, narrowing avaluematch to records at or before this point.Pagination cursor.Pagination cursor.Inclusive upper bound of a range lookup (requiresfrom).Inclusive upper bound of a range lookup (requiresfrom).The record type to look up, e.g.Exact value to match.Exact value to match.Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them, given as a repeated parameter (?Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them, given as a repeated parameter (?
-
Method Details
-
from
- Specified by:
fromin interfaceLookupRecordsRequest.TypeStage
-
type
The record type to look up, e.g.
intake_form.The record type to look up, e.g.
intake_form.- Specified by:
typein interfaceLookupRecordsRequest.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
field
The name of the lookup field to match on, as declared on the type's schema.
The name of the lookup field to match on, as declared on the type's schema.
- Specified by:
fieldin interfaceLookupRecordsRequest.FieldStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
order
Sort direction by the field's value:
asc(ascending, the default) ordesc(descending).- Specified by:
orderin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
order
Sort direction by the field's value:
asc(ascending, the default) ordesc(descending).- Specified by:
orderin interfaceLookupRecordsRequest._FinalStage
-
includePayload
Set to
trueto include each record's full payload, rehydrating any payloads stored externally (capped per page). Defaults tofalse, which returns only the indexed projection.- Specified by:
includePayloadin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
includePayload
Set to
trueto include each record's full payload, rehydrating any payloads stored externally (capped per page). Defaults tofalse, which returns only the indexed projection.- Specified by:
includePayloadin interfaceLookupRecordsRequest._FinalStage
-
limit
Maximum number of records to return per page. Allowed range 1–100; defaults to 20.
- Specified by:
limitin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
limit
Maximum number of records to return per page. Allowed range 1–100; defaults to 20.
- Specified by:
limitin interfaceLookupRecordsRequest._FinalStage
-
startFrom
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.- Specified by:
startFromin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startFrom
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.- Specified by:
startFromin interfaceLookupRecordsRequest._FinalStage
-
sortTo
Inclusive upper bound on the lookup field's sort key, narrowing a
valuematch to records at or before this point. Use withvalue; combine withsortFrom.- Specified by:
sortToin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sortTo
Inclusive upper bound on the lookup field's sort key, narrowing a
valuematch to records at or before this point. Use withvalue; combine withsortFrom.- Specified by:
sortToin interfaceLookupRecordsRequest._FinalStage
-
sortFrom
Inclusive lower bound on the lookup field's sort key, narrowing a
valuematch to records 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. Records with no value for the sorted field are never included in a bounded window.- Specified by:
sortFromin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sortFrom
Inclusive lower bound on the lookup field's sort key, narrowing a
valuematch to records 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. Records with no value for the sorted field are never included in a bounded window.- Specified by:
sortFromin interfaceLookupRecordsRequest._FinalStage
-
prefix
Prefix to match (string, non-sensitive fields only). Mutually exclusive with
valueandfrom/to.- Specified by:
prefixin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
prefix
Prefix to match (string, non-sensitive fields only). Mutually exclusive with
valueandfrom/to.- Specified by:
prefixin interfaceLookupRecordsRequest._FinalStage
-
to
Inclusive upper bound of a range lookup (requires
from).- Specified by:
toin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
to
Inclusive upper bound of a range lookup (requires
from).- Specified by:
toin interfaceLookupRecordsRequest._FinalStage
-
from
Inclusive lower bound of a range lookup (requires
to; non-sensitive fields only). Mutually exclusive withvalueandprefix.- Specified by:
fromin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
from
Inclusive lower bound of a range lookup (requires
to; non-sensitive fields only). Mutually exclusive withvalueandprefix.- Specified by:
fromin interfaceLookupRecordsRequest._FinalStage
-
value
Exact value to match. Mutually exclusive with
from/to,prefixandvalues. Rejected for a sensitive field — usePOST /v1/records/lookupinstead so the value is not exposed in the URL.- Specified by:
valuein interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
Exact value to match. Mutually exclusive with
from/to,prefixandvalues. Rejected for a sensitive field — usePOST /v1/records/lookupinstead so the value is not exposed in the URL.- Specified by:
valuein interfaceLookupRecordsRequest._FinalStage
-
values
- Specified by:
valuesin interfaceLookupRecordsRequest._FinalStage
-
values
Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them, given as a repeated parameter (
?field=status,area&values=open&values=billing). Mutually exclusive withvalue; a singlevaluesis identical tovalue.You may supply fewer values than the lookup declares, as long as they are a leading run of its fields; doing so returns the records grouped by the fields you left unspecified. Narrowing with
sortFrom/sortTothen requires a value for every field, because the ordering is only continuous within one fully specified combination.- Specified by:
valuesin interfaceLookupRecordsRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
values
Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them, given as a repeated parameter (
?field=status,area&values=open&values=billing). Mutually exclusive withvalue; a singlevaluesis identical tovalue.You may supply fewer values than the lookup declares, as long as they are a leading run of its fields; doing so returns the records grouped by the fields you left unspecified. Narrowing with
sortFrom/sortTothen requires a value for every field, because the ordering is only continuous within one fully specified combination.- Specified by:
valuesin interfaceLookupRecordsRequest._FinalStage
-
build
- Specified by:
buildin interfaceLookupRecordsRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceLookupRecordsRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceLookupRecordsRequest._FinalStage
-