Class RecordLookupRequest.Builder
- All Implemented Interfaces:
RecordLookupRequest._FinalStage,RecordLookupRequest.FieldStage,RecordLookupRequest.TypeStage
- Enclosing class:
RecordLookupRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Name of the lookup field declared on the schema.from(RecordLookupRequest other) Inclusive lower bound for a range lookup (requiresto; non-sensitive fields only).Inclusive lower bound for a range lookup (requiresto; non-sensitive fields only).includePayload(Boolean includePayload) When true, externalized record payloads are returned in full in this response (capped per page).includePayload(Optional<Boolean> includePayload) When true, externalized record payloads are returned in full in this response (capped per page).Maximum number of records to return per page (1–100; defaults to 20).Maximum number of records to return per page (1–100; defaults to 20).order(RecordLookupRequestOrder order) Sort direction for the returned results:asc(default) ordesc.order(Optional<RecordLookupRequestOrder> order) Sort direction for the returned results:asc(default) ordesc.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 whose sort key is at or after this point.Inclusive lower bound on the lookup field's sort key, narrowing avaluematch to records whose sort key is at or after this point.Inclusive upper bound on the lookup field's sort key, narrowing avaluematch to records whose sort key is at or before this point.Inclusive upper bound on the lookup field's sort key, narrowing avaluematch to records whose sort key is at or before this point.Pagination cursor — pass thenextCursorreturned by the previous page.Pagination cursor — pass thenextCursorreturned by the previous page.Inclusive upper bound for a range lookup (requiresfrom).Inclusive upper bound for a range lookup (requiresfrom).The record type to look up (for example,intake_form).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.Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them.
-
Method Details
-
from
- Specified by:
fromin interfaceRecordLookupRequest.TypeStage
-
type
The record type to look up (for example,
intake_form).The record type to look up (for example,
intake_form).- Specified by:
typein interfaceRecordLookupRequest.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
field
Name of the lookup field declared on the schema. For a field marked sensitive, this body variant is required (the GET variant rejects looking up by a sensitive value). For a lookup declared over several fields, give those field names joined with commas (
status,area) and put the values invalues.Name of the lookup field declared on the schema. For a field marked sensitive, this body variant is required (the GET variant rejects looking up by a sensitive value). For a lookup declared over several fields, give those field names joined with commas (
status,area) and put the values invalues.- Specified by:
fieldin interfaceRecordLookupRequest.FieldStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
includePayload
When true, externalized record payloads are returned in full in this response (capped per page). Defaults to false, which returns only the indexed projection.
- Specified by:
includePayloadin interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
includePayload
When true, externalized record payloads are returned in full in this response (capped per page). Defaults to false, which returns only the indexed projection.
- Specified by:
includePayloadin interfaceRecordLookupRequest._FinalStage
-
order
Sort direction for the returned results:
asc(default) ordesc.- Specified by:
orderin interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
order
Sort direction for the returned results:
asc(default) ordesc.- Specified by:
orderin interfaceRecordLookupRequest._FinalStage
-
limit
Maximum number of records to return per page (1–100; defaults to 20).
- Specified by:
limitin interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
limit
Maximum number of records to return per page (1–100; defaults to 20).
- Specified by:
limitin interfaceRecordLookupRequest._FinalStage
-
startFrom
Pagination cursor — pass the
nextCursorreturned by the previous page.- Specified by:
startFromin interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startFrom
Pagination cursor — pass the
nextCursorreturned by the previous page.- Specified by:
startFromin interfaceRecordLookupRequest._FinalStage
-
sortTo
Inclusive upper bound on the lookup field's sort key, narrowing a
valuematch to records whose sort key is at or before this point. Use withvalue; may be combined withsortFrom.- Specified by:
sortToin interfaceRecordLookupRequest._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 whose sort key is at or before this point. Use withvalue; may be combined withsortFrom.- Specified by:
sortToin interfaceRecordLookupRequest._FinalStage
-
sortFrom
Inclusive lower bound on the lookup field's sort key, narrowing a
valuematch to records whose sort key is at or after this point. Use withvalue; may be combined 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 interfaceRecordLookupRequest._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 whose sort key is at or after this point. Use withvalue; may be combined 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 interfaceRecordLookupRequest._FinalStage
-
prefix
Prefix to match (string, non-sensitive fields only). Mutually exclusive with
valueandfrom/to.- Specified by:
prefixin interfaceRecordLookupRequest._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 interfaceRecordLookupRequest._FinalStage
-
to
Inclusive upper bound for a range lookup (requires
from).- Specified by:
toin interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
to
Inclusive upper bound for a range lookup (requires
from).- Specified by:
toin interfaceRecordLookupRequest._FinalStage
-
from
Inclusive lower bound for a range lookup (requires
to; non-sensitive fields only). Mutually exclusive withvalueandprefix.- Specified by:
fromin interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
from
Inclusive lower bound for a range lookup (requires
to; non-sensitive fields only). Mutually exclusive withvalueandprefix.- Specified by:
fromin interfaceRecordLookupRequest._FinalStage
-
values
Exact values to match, for a lookup declared over several fields — one value per field, in the order the lookup declares them. Mutually exclusive with
value; a single-element list is exactlyvaluewritten uniformly.You may supply fewer values than the lookup declares, as long as they are a leading run of its fields: on a lookup over
[status, area, owner]you can matchstatus, orstatusandarea, but neverareaalone. Supplying fewer values returns the records grouped by the fields you left unspecified;sortFrom/sortTothen need every value, because sorting is only continuous within one fully specified combination.- Specified by:
valuesin interfaceRecordLookupRequest._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. Mutually exclusive with
value; a single-element list is exactlyvaluewritten uniformly.You may supply fewer values than the lookup declares, as long as they are a leading run of its fields: on a lookup over
[status, area, owner]you can matchstatus, orstatusandarea, but neverareaalone. Supplying fewer values returns the records grouped by the fields you left unspecified;sortFrom/sortTothen need every value, because sorting is only continuous within one fully specified combination.- Specified by:
valuesin interfaceRecordLookupRequest._FinalStage
-
value
Exact value to match. Mutually exclusive with
from/to,prefixandvalues. Sensitive fields can only be looked up by exact value, and only through this body variant. For a lookup over several fields, usevaluesinstead.- Specified by:
valuein interfaceRecordLookupRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
Exact value to match. Mutually exclusive with
from/to,prefixandvalues. Sensitive fields can only be looked up by exact value, and only through this body variant. For a lookup over several fields, usevaluesinstead.- Specified by:
valuein interfaceRecordLookupRequest._FinalStage
-
build
- Specified by:
buildin interfaceRecordLookupRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceRecordLookupRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceRecordLookupRequest._FinalStage
-