Interface CustomerSearchRequest


public interface CustomerSearchRequest
CustomerSearchRequest
Example to create an instance using the builder pattern

     CustomerSearchRequest customerSearchRequest = CustomerSearchRequest.builder()
             .build()
 
  • Method Details

    • getQuery

      @Valid @Valid SearchQuery getQuery()

      The Customer search query.

      Returns:
      query
    • getSort

      @Valid @Valid List<SearchSorting> getSort()

      Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

      Returns:
      sort
    • getLimit

      Integer getLimit()

      The maximum number of search results to be returned.

      Returns:
      limit
    • getOffset

      Integer getOffset()

      The number of search results to be skipped in the response for pagination.

      Returns:
      offset
    • setQuery

      void setQuery(SearchQuery query)

      The Customer search query.

      Parameters:
      query - value to be set
    • setSort

      void setSort(SearchSorting... sort)

      Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

      Parameters:
      sort - values to be set
    • setSort

      void setSort(List<SearchSorting> sort)

      Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.

      Parameters:
      sort - values to be set
    • setLimit

      void setLimit(Integer limit)

      The maximum number of search results to be returned.

      Parameters:
      limit - value to be set
    • setOffset

      void setOffset(Integer offset)

      The number of search results to be skipped in the response for pagination.

      Parameters:
      offset - value to be set
    • of

      static CustomerSearchRequest of()
      factory method
      Returns:
      instance of CustomerSearchRequest
    • of

      factory method to create a shallow copy CustomerSearchRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CustomerSearchRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CustomerSearchRequestBuilder builder()
      builder factory method for CustomerSearchRequest
      Returns:
      builder
    • builder

      create builder for CustomerSearchRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSearchRequest

      default <T> T withCustomerSearchRequest(Function<CustomerSearchRequest,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomerSearchRequest> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference