Package com.veeva.vault.sdk.api.data
Interface ObjectMetadataRequest.Builder
- Enclosing interface:
- ObjectMetadataRequest
public static interface ObjectMetadataRequest.Builder
Creates an instance of
ObjectMetadataRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and retrieves a completedObjectMetadataRequest.withObjectName(String objectName) Optional: Sets the object name.withObjectPrefix(String objectPrefix) Optional: Sets the object prefix.
-
Method Details
-
withObjectName
Optional: Sets the object name. Request must include either an object name or an object prefix, but not both. If both are provided, only the object name will be used.- Parameters:
objectName- name of the object to retrieve metadata of. Cannot be null or empty. Object must exist. For example,product__v.- Returns:
- this
ObjectMetadataRequest.Builder
-
withObjectPrefix
Optional: Sets the object prefix. Request must include either an object name or an object prefix, but not both. If both are provided, only the object name will be used.- Parameters:
objectPrefix- prefix of the object to retrieve metadata of. Cannot be null or empty. Object must exist. For example,00P.- Returns:
- this
ObjectMetadataRequest.Builder
-
build
ObjectMetadataRequest build()Validates and retrieves a completedObjectMetadataRequest.- Returns:
- this completed
ObjectMetadataRequest
-