Class LookupRecordsRequest

java.lang.Object
ai.vectros.resources.records.requests.LookupRecordsRequest

public final class LookupRecordsRequest extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
      The record type to look up, e.g. intake_form.
    • getField

      public String getField()
      Returns:
      The name of the lookup field to match on, as declared on the type's schema.
    • getValue

      public Optional<String> getValue()
      Returns:
      Exact value to match. Mutually exclusive with from/to and prefix. Rejected for a sensitive field — use POST /v1/records/lookup instead so the value is not exposed in the URL.
    • getFrom

      public Optional<String> getFrom()
      Returns:
      Inclusive lower bound of a range lookup (requires to; non-sensitive fields only). Mutually exclusive with value and prefix.
    • getTo

      public Optional<String> getTo()
      Returns:
      Inclusive upper bound of a range lookup (requires from).
    • getPrefix

      public Optional<String> getPrefix()
      Returns:
      Prefix to match (string, non-sensitive fields only). Mutually exclusive with value and from/to.
    • getStartFrom

      public Optional<String> getStartFrom()
      Returns:
      Pagination cursor. Pass the nextCursor from the previous page; omit it for the first page.
    • getLimit

      public Optional<Long> getLimit()
      Returns:
      Maximum number of records to return per page. Allowed range 1–100; defaults to 20.
    • getIncludePayload

      public Optional<String> getIncludePayload()
      Returns:
      Set to true to include each record's full payload, rehydrating any payloads stored externally (capped per page). Defaults to false, which returns only the indexed projection.
    • getOrder

      public Optional<LookupRecordsRequestOrder> getOrder()
      Returns:
      Sort direction by the field's value: asc (ascending, the default) or desc (descending).
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static LookupRecordsRequest.TypeStage builder()