Package com.veeva.vault.sdk.api.page
Interface PageLoadErrorResponse.Builder
- Enclosing interface:
- PageLoadErrorResponse
public static interface PageLoadErrorResponse.Builder
Creates an instance of
PageLoadErrorResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Retrieves a completedPageLoadResponse
.Required: Sets the title for the error response of a page load request.withUserMessage
(String userMessage) Required: Sets the user-facing message for the error response of a page load request.
-
Method Details
-
withTitle
Required: Sets the title for the error response of a page load request.- Parameters:
title
- a non-blank String representing the title for the error response- Returns:
- this
PageLoadErrorResponse.Builder
-
withUserMessage
Required: Sets the user-facing message for the error response of a page load request.- Parameters:
userMessage
- a non-blank String representing a user-facing message for the error response- Returns:
- this
PageLoadErrorResponse.Builder
-
build
PageLoadResponse build()Retrieves a completedPageLoadResponse
.- Returns:
- the completed
PageLoadResponse
-