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