Interface PageEventResponse.Builder

Enclosing interface:
PageEventResponse

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

      Retrieves a completed PageEventResponse.
      Returns:
      the completed PageEventResponse