Interface ImportContainerPagedResponse


public interface ImportContainerPagedResponse

PagedQueryResult for ImportContainers. Used as a response to a query request for ImportContainers.


Example to create an instance using the builder pattern

     ImportContainerPagedResponse importContainerPagedResponse = ImportContainerPagedResponse.builder()
             .limit(1)
             .offset(1)
             .count(1)
             .total(1)
             .plusResults(resultsBuilder -> resultsBuilder)
             .build()
 
  • Method Details

    • getLimit

      @NotNull @NotNull Integer getLimit()

      Number of results requested.

      Returns:
      limit
    • getOffset

      @NotNull @NotNull Long getOffset()

      Number of elements skipped.

      Returns:
      offset
    • getCount

      @NotNull @NotNull Long getCount()

      The actual number of results returned.

      Returns:
      count
    • getTotal

      @NotNull @NotNull Long getTotal()

      The total number of results matching the query.

      Returns:
      total
    • getResults

      @NotNull @Valid @NotNull @Valid List<ImportContainer> getResults()

      The array of Import Containers matching the query.

      Returns:
      results
    • setLimit

      void setLimit(Integer limit)

      Number of results requested.

      Parameters:
      limit - value to be set
    • setOffset

      void setOffset(Long offset)

      Number of elements skipped.

      Parameters:
      offset - value to be set
    • setCount

      void setCount(Long count)

      The actual number of results returned.

      Parameters:
      count - value to be set
    • setTotal

      void setTotal(Long total)

      The total number of results matching the query.

      Parameters:
      total - value to be set
    • setResults

      void setResults(ImportContainer... results)

      The array of Import Containers matching the query.

      Parameters:
      results - values to be set
    • setResults

      void setResults(List<ImportContainer> results)

      The array of Import Containers matching the query.

      Parameters:
      results - values to be set
    • of

      factory method
      Returns:
      instance of ImportContainerPagedResponse
    • of

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

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

      builder factory method for ImportContainerPagedResponse
      Returns:
      builder
    • builder

      create builder for ImportContainerPagedResponse instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withImportContainerPagedResponse

      default <T> T withImportContainerPagedResponse(Function<ImportContainerPagedResponse,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<ImportContainerPagedResponse> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference