Package com.veeva.vault.sdk.api.query
Interface QueryFacetRequest.Builder
- Enclosing interface:
- QueryFacetRequest
public static interface QueryFacetRequest.Builder
Creates an instance of
QueryFacetRequest
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a completedQueryFacetRequest
.includeLabels
(boolean shouldIncludeLabels) Indicates whether theQueryFacetValue
s should include the labels for the values.withFacetFields
(List<String> facetFields) Required: Sets the facet fields, replacing any existing fields.
-
Method Details
-
withFacetFields
Required: Sets the facet fields, replacing any existing fields. Must be set before callingbuild()
. Setting more than 10 fields will cause the query request to fail.- Parameters:
facetFields
- the List of fields to facet on- Returns:
- this Builder
-
includeLabels
Indicates whether theQueryFacetValue
s should include the labels for the values.- Parameters:
shouldIncludeLabels
- true if value labels should be included in the response, false otherwise- Returns:
- this Builder
-
build
QueryFacetRequest build()Returns a completedQueryFacetRequest
.- Returns:
- the completed QueryFacetRequest
-