Package com.veeva.vault.sdk.api.document
Interface DocumentVersionBatchUpdateRequest.Builder
- Enclosing interface:
DocumentVersionBatchUpdateRequest
public static interface DocumentVersionBatchUpdateRequest.Builder
Creates an instance of
DocumentVersionBatchUpdateRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and builds aDocumentVersionBatchUpdateRequest.withDocumentVersions(List<DocumentVersion> documentVersions) Required: Sets the list of document versions to be updated in a batch.Optional: Sets Migration Mode to true.
-
Method Details
-
withDocumentVersions
DocumentVersionBatchUpdateRequest.Builder withDocumentVersions(List<DocumentVersion> documentVersions) Required: Sets the list of document versions to be updated in a batch.- Parameters:
documentVersions- list ofDocumentVersionto update. Cannot be null or empty.- Returns:
- this
DocumentVersionBatchUpdateRequest.Builder
-
withMigrationMode
DocumentVersionBatchUpdateRequest.Builder withMigrationMode()Optional: Sets Migration Mode to true.
If invoked, Vault- bypasses entry criteria, entry actions, validation rules, and reference constraints
- allows you to update documents in a specific state. Inactive doc type/subtype/classification, lifecycle, lifecycle states are allowed
The SDK user must have the Document Migration permission to use this method. If omitted, defaults to false and Migration Mode rules do not apply.- Returns:
- this
DocumentVersionBatchUpdateRequest.Builder
-
build
Validates and builds aDocumentVersionBatchUpdateRequest.- Returns:
- a
DocumentVersionBatchUpdateRequest
-