Interface PageLoadResponse.Builder

Enclosing interface:
PageLoadResponse

public static interface PageLoadResponse.Builder
Creates an instance of PageLoadResponse.
  • 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 a UserDefinedModel.
      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 a UserDefinedModel. 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 UserDefinedModel
      userDefinedModelClass - the UserDefinedModel class that represents the data
      Returns:
      this PageLoadResponse.Builder
    • build

      Retrieves a completed PageLoadResponse.
      Returns:
      the completed PageLoadResponse