Class ExportRequest.Builder
- Enclosing class:
ExportRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()contextScope(List<String> contextScope) contextScope(Optional<List<String>> contextScope) The contexts to export.externalId(String externalId) externalId(Optional<String> externalId) Your own externalId for the subject, as an alternative tosubjectId(only whenscopeissubject).format(ExportRequestFormat format) format(Optional<ExportRequestFormat> format) Serialization format of the export payload.from(ExportRequest other) includeAuditHistory(Boolean includeAuditHistory) includeAuditHistory(Optional<Boolean> includeAuditHistory) Whether to also include the audit and version-history trail of the exported data, not just the current live rows.scope(ExportRequestScope scope) scope(Optional<ExportRequestScope> scope) What to export.The platform id of the subject to export.subjectType(String subjectType) subjectType(Optional<String> subjectType) The kind of subject to export:userfor a person, or an ownership namespace such asorgorclient— including a custom namespace you have defined.
-
Method Details
-
from
-
scope
What to export.
tenant(the default) exports all of your account's data across the requested contexts;subjectexports a single end-subject's data (for example, to satisfy a one-person data-portability request). Additional scopes may be added in the future. -
scope
-
subjectType
The kind of subject to export:
userfor a person, or an ownership namespace such asorgorclient— including a custom namespace you have defined. Required only whenscopeissubject. -
subjectType
-
subjectId
The platform id of the subject to export. Used only when
scopeissubject. Provide exactly one ofsubjectIdorexternalId. -
subjectId
-
externalId
Your own externalId for the subject, as an alternative to
subjectId(only whenscopeissubject). Provide exactly one ofsubjectIdorexternalId. -
externalId
-
contextScope
The contexts to export. Omit or leave empty to export all of your contexts. Each listed context is exported and reported separately in the manifest.
-
contextScope
-
format
Serialization format of the export payload. NDJSON (newline-delimited JSON, one row per line) is currently the only supported format; more may be added in the future. The manifest carries a
formatVersionso you can parse the payload in a forward-compatible way. -
format
-
includeAuditHistory
Whether to also include the audit and version-history trail of the exported data, not just the current live rows. Defaults to false (live data only). Set true to also export the retained version history. This governs only the audit data — the live records are always included.
-
includeAuditHistory
-
build
-
additionalProperty
-
additionalProperties
-