Package com.veeva.vault.sdk.api.page
Interface PageLoadResponse.Builder
- Enclosing interface:
- PageLoadResponse
public static interface PageLoadResponse.Builder
Creates an instance of
PageLoadResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Retrieves a completedPageLoadResponse
.withData
(JsonObject data) Conditional: Sets the data for the page load response as a JSON object.<U extends UserDefinedModel>
PageLoadResponse.BuilderConditional: Sets the data for the page load response as aUserDefinedModel
.
-
Method Details
-
withData
Conditional: Sets the data for the page load response as a JSON object. Required if the data for the page load response is not set as aUserDefinedModel
.- Parameters:
data
- the JSON data for the page load response- Returns:
- this PageLoadResponse.Builder
-
withData
<U extends UserDefinedModel> PageLoadResponse.Builder withData(U data, Class<U> userDefinedModelClass) Conditional: Sets the data for the page load response as aUserDefinedModel
. Required if the data for the page load response is not set as a JSON object.- Type Parameters:
U
- the UserDefinedModel type to set the data to- Parameters:
data
- the data for the page load response as a UserDefinedModeluserDefinedModelClass
- the UserDefinedModel class that represents the data- Returns:
- this PageLoadResponse.Builder
-
build
PageLoadResponse build()Retrieves a completedPageLoadResponse
.- Returns:
- the completed PageLoadResponse
-