Interface PriceImportRequest

All Superinterfaces:
ImportRequest

public interface PriceImportRequest extends ImportRequest

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


Example to create an instance using the builder pattern

     PriceImportRequest priceImportRequest = PriceImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

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

      The price import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(PriceImport... resources)

      The price import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<PriceImport> resources)

      The price import resources of this request.

      Parameters:
      resources - values to be set
    • of

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

      static PriceImportRequest of(PriceImportRequest template)
      factory method to create a shallow copy PriceImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static PriceImportRequestBuilder builder()
      builder factory method for PriceImportRequest
      Returns:
      builder
    • builder

      static PriceImportRequestBuilder builder(PriceImportRequest template)
      create builder for PriceImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPriceImportRequest

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