Package com.veeva.vault.sdk.api.document
Interface DocumentFieldCollectionRequest.Builder
- Enclosing interface:
- DocumentFieldCollectionRequest
public static interface DocumentFieldCollectionRequest.Builder
Creates an instance of
DocumentFieldCollectionRequest
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and retrieves a completedDocumentFieldCollectionRequest
.withDocumentType
(DocumentType documentType) Required: Sets theDocumentType
.withFieldFilter
(DocumentFieldFilter fieldFilter) Optional: Sets the filter to apply forDocumentField
bulk retrieval.withFieldNames
(Set<String> fieldNames) Optional: Sets the field names.
-
Method Details
-
withDocumentType
Required: Sets theDocumentType
.- Parameters:
documentType
- theDocumentType
. Cannot be null or empty. Document Type must exist.- Returns:
- this
DocumentFieldCollectionRequest.Builder
-
withFieldNames
Optional: Sets the field names.- Parameters:
fieldNames
- the set of names of the fields. Cannot be null or empty. Fields must exist. For example, name__v.- Returns:
- this
DocumentFieldCollectionRequest.Builder
-
withFieldFilter
Optional: Sets the filter to apply forDocumentField
bulk retrieval. If omitted, retrieves all field metadata for the specified document type.- Parameters:
fieldFilter
- the filter criteria to apply. Cannot be null or empty.- Returns:
- this
DocumentFieldCollectionRequest.Builder
-
build
DocumentFieldCollectionRequest build()Validates and retrieves a completedDocumentFieldCollectionRequest
.- Returns:
- the completed
DocumentFieldCollectionRequest
-