Interface CategoryImportRequest

All Superinterfaces:
ImportRequest

public interface CategoryImportRequest extends ImportRequest

The request body to import Categories. Contains data for Categories to be created or updated in a Project.


Example to create an instance using the builder pattern

     CategoryImportRequest categoryImportRequest = CategoryImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

      @NotNull @Valid @NotNull @Valid List<CategoryImport> getResources()

      The category import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(CategoryImport... resources)

      The category import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<CategoryImport> resources)

      The category import resources of this request.

      Parameters:
      resources - values to be set
    • of

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

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

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

      static CategoryImportRequestBuilder builder()
      builder factory method for CategoryImportRequest
      Returns:
      builder
    • builder

      create builder for CategoryImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCategoryImportRequest

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