Package com.veeva.vault.sdk.api.query
Interface QueryValidationRequest.Builder
- Enclosing interface:
- QueryValidationRequest
public static interface QueryValidationRequest.Builder
Creates an instance of
QueryValidationRequest
. Calling at least one method
to set the query is required.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Retrieves the completedQueryValidationRequest
.Sets the VQLQuery
, replacing any previously set Query or query string.Enables Query Describe on the query.withQueryString
(String queryString) Sets the VQL query string, replacing any previously set query string orQuery
.withTokenRequest
(TokenRequest tokenRequest, QueryEscapeOverride... escapeOverrides) Sets theTokenRequest
andQueryEscapeOverride
(s), replacing any previously setTokenRequest
andQueryEscapeOverride
(s).
-
Method Details
-
withQuery
Sets the VQLQuery
, replacing any previously set Query or query string.- Parameters:
query
- VQL query to be validated- Returns:
- this
Builder
-
withQueryString
Sets the VQL query string, replacing any previously set query string orQuery
.- Parameters:
queryString
- VQL query string to be validated- Returns:
- this Builder
-
withTokenRequest
QueryValidationRequest.Builder withTokenRequest(TokenRequest tokenRequest, QueryEscapeOverride... escapeOverrides) Sets theTokenRequest
andQueryEscapeOverride
(s), replacing any previously setTokenRequest
andQueryEscapeOverride
(s).Filters on a
String
field support tokens containing all the types listed inTokenRequest
except forList
. A filter using CONTAINS only supports a token containing aList
. All other fields support tokens containing either their type or aString
.Vault escapes all special VQL characters in
String
tokens if escape overrides are not provided.- Parameters:
tokenRequest
- a token request containing all custom tokens used in the queryescapeOverrides
- overrides(s) indicating which characters not to escape- Returns:
- this Builder
-
withQueryDescribe
QueryValidationRequest.Builder withQueryDescribe()Enables Query Describe on the query.- Returns:
- this Builder
-
build
QueryValidationRequest build()Retrieves the completedQueryValidationRequest
.The query must be non-null.
- Returns:
- the completed QueryValidationRequest
-