Package com.veeva.vault.sdk.api.document
Interface DocumentFieldMetadataRequest.Builder
- Enclosing interface:
- DocumentFieldMetadataRequest
public static interface DocumentFieldMetadataRequest.Builder
Creates an instance of
DocumentFieldMetadataRequest
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and retrieves a completedDocumentFieldMetadataRequest
.Optional: Sets a filter to retrieve active field attributes only.withDocumentType
(DocumentType documentType) Optional: Sets theDocumentType
.Optional: sets a filter to only retrieve fields which the current user has permission to edit.Optional: Sets a filter to retrieve facetable field attributes only.withFieldNames
(List<String> fieldNames) Optional: Sets the field names.Optional: Sets a filter to retrieve required field attributes only.Optional: Sets a filter to retrieve shared field attributes only.Optional: sets a filter to only retrieve fields which the current user has permission to view.
-
Method Details
-
withDocumentType
Optional: Sets theDocumentType
. When omitted, retrieves all fields.- Parameters:
documentType
- theDocumentType
. Document Type must exist.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withFieldNames
Optional: Sets the field names.- Parameters:
fieldNames
- the list of names of the fields. Cannot be null, empty, or contains duplicates. Fields must exist. For example, name__v.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withActiveOnly
DocumentFieldMetadataRequest.Builder withActiveOnly()Optional: Sets a filter to retrieve active field attributes only. When omitted, retrieves all field attributes.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withEditableOnly
DocumentFieldMetadataRequest.Builder withEditableOnly()Optional: sets a filter to only retrieve fields which the current user has permission to edit. When omitted, retrieves both editable and non-editable fields.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withVisibleOnly
DocumentFieldMetadataRequest.Builder withVisibleOnly()Optional: sets a filter to only retrieve fields which the current user has permission to view. When omitted, retrieves both viewable and hidden fields.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withRequiredOnly
DocumentFieldMetadataRequest.Builder withRequiredOnly()Optional: Sets a filter to retrieve required field attributes only. When omitted, retrieves all field attributes.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withFacetableOnly
DocumentFieldMetadataRequest.Builder withFacetableOnly()Optional: Sets a filter to retrieve facetable field attributes only. When omitted, retrieves all field attributes.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
build
DocumentFieldMetadataRequest build()Validates and retrieves a completedDocumentFieldMetadataRequest
.- Returns:
- the completed
DocumentFieldMetadataRequest
-