Interface ProductImportRequest

All Superinterfaces:
ImportRequest

public interface ProductImportRequest extends ImportRequest

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


Example to create an instance using the builder pattern

     ProductImportRequest productImportRequest = ProductImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

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

      The product import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(ProductImport... resources)

      The product import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<ProductImport> resources)

      The product import resources of this request.

      Parameters:
      resources - values to be set
    • of

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

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

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

      static ProductImportRequestBuilder builder()
      builder factory method for ProductImportRequest
      Returns:
      builder
    • builder

      create builder for ProductImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductImportRequest

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