Interface OrderImportRequest

All Superinterfaces:
ImportRequest

public interface OrderImportRequest extends ImportRequest

The request body to import Orders. Contains data for Orders to be created in a Project.


Example to create an instance using the builder pattern

     OrderImportRequest orderImportRequest = OrderImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

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

      The order import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(OrderImport... resources)

      The order import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<OrderImport> resources)

      The order import resources of this request.

      Parameters:
      resources - values to be set
    • of

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

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

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

      static OrderImportRequestBuilder builder()
      builder factory method for OrderImportRequest
      Returns:
      builder
    • builder

      static OrderImportRequestBuilder builder(OrderImportRequest template)
      create builder for OrderImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderImportRequest

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